1
2
3
4
5
6
7
8
9
10
11 package org.mule.transport.cxf.config;
12
13 import org.mule.config.spring.handlers.AbstractMuleNamespaceHandler;
14 import org.mule.config.spring.parsers.specific.ComponentDefinitionParser;
15 import org.mule.transport.cxf.CxfConnector;
16 import org.mule.transport.cxf.CxfConstants;
17 import org.mule.transport.cxf.component.WebServiceWrapperComponent;
18 import org.mule.transport.cxf.support.StaxFeature;
19
20 import org.apache.cxf.configuration.spring.SimpleBeanDefinitionParser;
21
22 public class CxfNamespaceHandler extends AbstractMuleNamespaceHandler
23 {
24
25 public void init()
26 {
27 registerMetaTransportEndpoints(CxfConnector.CXF);
28
29 registerConnectorDefinitionParser(CxfConnector.class);
30
31 registerBeanDefinitionParser("features", new EndpointChildDefinitionParser("features"));
32
33 registerBeanDefinitionParser(CxfConstants.DATA_BINDING, new EndpointChildDefinitionParser(
34 CxfConstants.DATA_BINDING));
35
36 registerBeanDefinitionParser(CxfConstants.IN_INTERCEPTORS, new EndpointChildDefinitionParser(
37 CxfConstants.IN_INTERCEPTORS));
38
39 registerBeanDefinitionParser(CxfConstants.IN_FAULT_INTERCEPTORS, new EndpointChildDefinitionParser(
40 CxfConstants.IN_FAULT_INTERCEPTORS));
41
42 registerBeanDefinitionParser(CxfConstants.OUT_INTERCEPTORS, new EndpointChildDefinitionParser(
43 CxfConstants.OUT_INTERCEPTORS));
44
45 registerBeanDefinitionParser(CxfConstants.OUT_FAULT_INTERCEPTORS, new EndpointChildDefinitionParser(
46 CxfConstants.OUT_FAULT_INTERCEPTORS));
47
48 registerBeanDefinitionParser("stax", new SimpleBeanDefinitionParser(StaxFeature.class));
49
50 registerBeanDefinitionParser("wrapper-component", new ComponentDefinitionParser(WebServiceWrapperComponent.class));
51 }
52 }