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