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