1
2
3
4
5
6
7 package org.mule.config.spring.parsers.specific;
8
9 import org.mule.api.config.MuleConfiguration;
10 import org.mule.api.config.MuleProperties;
11 import org.mule.config.spring.parsers.generic.NamedDefinitionParser;
12
13 import org.springframework.beans.factory.BeanDefinitionStoreException;
14 import org.springframework.beans.factory.support.AbstractBeanDefinition;
15 import org.springframework.beans.factory.xml.ParserContext;
16 import org.w3c.dom.Element;
17
18
19
20
21
22
23
24 public class ConfigurationDefinitionParser extends NamedDefinitionParser
25 {
26 public ConfigurationDefinitionParser()
27 {
28 super(MuleProperties.OBJECT_MULE_CONFIGURATION);
29 singleton=true;
30 }
31
32 protected Class getBeanClass(Element element)
33 {
34 return MuleConfiguration.class;
35 }
36
37 @Override
38 protected String resolveId(Element element, AbstractBeanDefinition definition, ParserContext parserContext) throws BeanDefinitionStoreException
39 {
40 return MuleProperties.OBJECT_MULE_CONFIGURATION;
41 }
42
43 }