1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.config.spring.parsers.delegate; |
12 | |
|
13 | |
import org.mule.config.spring.parsers.MuleDefinitionParser; |
14 | |
import org.mule.config.spring.parsers.MuleDefinitionParserConfiguration; |
15 | |
import org.mule.config.spring.parsers.PostProcessor; |
16 | |
import org.mule.config.spring.parsers.PreProcessor; |
17 | |
import org.mule.config.spring.parsers.assembly.configuration.ValueMap; |
18 | |
|
19 | |
import java.util.Map; |
20 | |
|
21 | |
import org.springframework.beans.factory.support.AbstractBeanDefinition; |
22 | |
import org.springframework.beans.factory.xml.ParserContext; |
23 | |
import org.w3c.dom.Element; |
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
public abstract class AbstractPluggableDelegate implements MuleDefinitionParser |
31 | |
{ |
32 | |
|
33 | |
private MuleDefinitionParser delegate; |
34 | |
|
35 | |
public AbstractPluggableDelegate(MuleDefinitionParser delegate) |
36 | 0 | { |
37 | 0 | this.delegate = delegate; |
38 | 0 | } |
39 | |
|
40 | |
public AbstractBeanDefinition muleParse(Element element, ParserContext parserContext) |
41 | |
{ |
42 | 0 | return delegate.muleParse(element, parserContext); |
43 | |
} |
44 | |
|
45 | |
public MuleDefinitionParserConfiguration registerPreProcessor(PreProcessor preProcessor) |
46 | |
{ |
47 | 0 | delegate.registerPreProcessor(preProcessor); |
48 | 0 | return this; |
49 | |
} |
50 | |
|
51 | |
public MuleDefinitionParserConfiguration registerPostProcessor(PostProcessor postProcessor) |
52 | |
{ |
53 | 0 | delegate.registerPostProcessor(postProcessor); |
54 | 0 | return this; |
55 | |
} |
56 | |
|
57 | |
public MuleDefinitionParserConfiguration addReference(String propertyName) |
58 | |
{ |
59 | 0 | delegate.addReference(propertyName); |
60 | 0 | return this; |
61 | |
} |
62 | |
|
63 | |
public MuleDefinitionParserConfiguration addMapping(String propertyName, Map mappings) |
64 | |
{ |
65 | 0 | delegate.addMapping(propertyName, mappings); |
66 | 0 | return this; |
67 | |
} |
68 | |
|
69 | |
public MuleDefinitionParserConfiguration addMapping(String propertyName, String mappings) |
70 | |
{ |
71 | 0 | delegate.addMapping(propertyName, mappings); |
72 | 0 | return this; |
73 | |
} |
74 | |
|
75 | |
public MuleDefinitionParserConfiguration addMapping(String propertyName, ValueMap mappings) |
76 | |
{ |
77 | 0 | delegate.addMapping(propertyName, mappings); |
78 | 0 | return this; |
79 | |
} |
80 | |
|
81 | |
public MuleDefinitionParserConfiguration addAlias(String alias, String propertyName) |
82 | |
{ |
83 | 0 | delegate.addAlias(alias, propertyName); |
84 | 0 | return this; |
85 | |
} |
86 | |
|
87 | |
public MuleDefinitionParserConfiguration addCollection(String propertyName) |
88 | |
{ |
89 | 0 | delegate.addCollection(propertyName); |
90 | 0 | return this; |
91 | |
} |
92 | |
|
93 | |
public MuleDefinitionParserConfiguration addIgnored(String propertyName) |
94 | |
{ |
95 | 0 | delegate.addIgnored(propertyName); |
96 | 0 | return this; |
97 | |
} |
98 | |
|
99 | |
public MuleDefinitionParserConfiguration removeIgnored(String propertyName) |
100 | |
{ |
101 | 0 | delegate.removeIgnored(propertyName); |
102 | 0 | return this; |
103 | |
} |
104 | |
|
105 | |
public MuleDefinitionParserConfiguration setIgnoredDefault(boolean ignoreAll) |
106 | |
{ |
107 | 0 | delegate.setIgnoredDefault(ignoreAll); |
108 | 0 | return this; |
109 | |
} |
110 | |
|
111 | |
public void setDeprecationWarning(String deprecationWarning) |
112 | |
{ |
113 | 0 | delegate.setDeprecationWarning(deprecationWarning); |
114 | 0 | } |
115 | |
} |