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