1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.config.spring.parsers.specific; |
12 | |
|
13 | |
import org.mule.config.spring.factories.FlowRefFactoryBean; |
14 | |
import org.mule.config.spring.parsers.generic.AutoIdUtils; |
15 | |
import org.mule.config.spring.parsers.generic.ChildDefinitionParser; |
16 | |
|
17 | |
import org.springframework.beans.factory.support.BeanDefinitionBuilder; |
18 | |
import org.springframework.beans.factory.xml.ParserContext; |
19 | |
import org.w3c.dom.Element; |
20 | |
|
21 | |
public class FlowRefDefinitionParser extends ChildDefinitionParser |
22 | |
{ |
23 | |
|
24 | |
public FlowRefDefinitionParser() |
25 | |
{ |
26 | 0 | super("messageProcessors", FlowRefFactoryBean.class); |
27 | 0 | addCollection("messageProcessors"); |
28 | 0 | } |
29 | |
|
30 | |
@Override |
31 | |
protected void parseChild(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) |
32 | |
{ |
33 | 0 | super.parseChild(element, parserContext, builder); |
34 | 0 | } |
35 | |
|
36 | |
public String getBeanName(Element element) |
37 | |
{ |
38 | 0 | return AutoIdUtils.uniqueValue("flow-ref." + element.getAttribute(ATTRIBUTE_NAME)); |
39 | |
} |
40 | |
|
41 | |
@Override |
42 | |
protected void checkElementNameUnique(Element element) |
43 | |
{ |
44 | |
|
45 | 0 | } |
46 | |
|
47 | |
} |