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