1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
package org.mule.module.client.config; |
11 | |
|
12 | |
import org.mule.config.spring.factories.InboundEndpointFactoryBean; |
13 | |
import org.mule.config.spring.parsers.generic.ChildDefinitionParser; |
14 | |
import org.mule.config.spring.parsers.specific.endpoint.support.ChildEndpointDefinitionParser; |
15 | |
import org.mule.module.xml.transformer.wire.XStreamWireFormat; |
16 | |
import org.mule.transformer.wire.SerializedMuleMessageWireFormat; |
17 | |
|
18 | |
import org.springframework.beans.factory.xml.NamespaceHandlerSupport; |
19 | |
|
20 | |
|
21 | |
|
22 | |
|
23 | 0 | public class ClientNamespaceHandler extends NamespaceHandlerSupport |
24 | |
{ |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
public void init() |
32 | |
{ |
33 | 0 | registerBeanDefinitionParser("remote-dispatcher-agent", new RemoteDispatcherAgentDefinitionParser()); |
34 | 0 | registerBeanDefinitionParser("remote-endpoint", new ChildEndpointDefinitionParser(InboundEndpointFactoryBean.class)); |
35 | 0 | registerBeanDefinitionParser("xml-wire-format", new ChildDefinitionParser("wireFormat", XStreamWireFormat.class)); |
36 | 0 | registerBeanDefinitionParser("serialization-wire-format", new ChildDefinitionParser("wireFormat", SerializedMuleMessageWireFormat.class)); |
37 | 0 | registerBeanDefinitionParser("custom-wire-format", new ChildDefinitionParser("wireFormat")); |
38 | 0 | } |
39 | |
} |