1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.config.spring.parsers.specific.endpoint.support; |
12 | |
|
13 | |
import org.mule.config.spring.parsers.generic.ChildDefinitionParser; |
14 | |
import org.mule.config.spring.parsers.processors.AddAttribute; |
15 | |
import org.mule.endpoint.URIBuilder; |
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
public class ChildAddressDefinitionParser extends ChildDefinitionParser |
21 | |
{ |
22 | |
|
23 | |
public static final boolean META = true; |
24 | |
public static final boolean PROTOCOL = false; |
25 | |
|
26 | |
public ChildAddressDefinitionParser(String protocol) |
27 | |
{ |
28 | 0 | this(protocol, PROTOCOL); |
29 | 0 | } |
30 | |
|
31 | |
public ChildAddressDefinitionParser(String metaOrProtocol, boolean isMeta) |
32 | |
{ |
33 | 0 | super(EndpointUtils.URI_BUILDER_ATTRIBUTE, URIBuilder.class); |
34 | 0 | registerPreProcessor( |
35 | |
new AddAttribute( |
36 | |
isMeta ? URIBuilder.META : URIBuilder.PROTOCOL, |
37 | |
metaOrProtocol)); |
38 | 0 | } |
39 | |
|
40 | |
} |