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 | 104 | public class CxfNamespaceHandler extends AbstractMuleNamespaceHandler |
23 | |
{ |
24 | |
|
25 | |
public void init() |
26 | |
{ |
27 | 104 | registerMetaTransportEndpoints(CxfConnector.CXF); |
28 | |
|
29 | 104 | registerConnectorDefinitionParser(CxfConnector.class); |
30 | |
|
31 | 104 | registerBeanDefinitionParser("features", new EndpointChildDefinitionParser("features")); |
32 | |
|
33 | 104 | registerBeanDefinitionParser(CxfConstants.DATA_BINDING, new EndpointChildDefinitionParser( |
34 | |
CxfConstants.DATA_BINDING)); |
35 | |
|
36 | 104 | registerBeanDefinitionParser(CxfConstants.IN_INTERCEPTORS, new EndpointChildDefinitionParser( |
37 | |
CxfConstants.IN_INTERCEPTORS)); |
38 | |
|
39 | 104 | registerBeanDefinitionParser(CxfConstants.IN_FAULT_INTERCEPTORS, new EndpointChildDefinitionParser( |
40 | |
CxfConstants.IN_FAULT_INTERCEPTORS)); |
41 | |
|
42 | 104 | registerBeanDefinitionParser(CxfConstants.OUT_INTERCEPTORS, new EndpointChildDefinitionParser( |
43 | |
CxfConstants.OUT_INTERCEPTORS)); |
44 | |
|
45 | 104 | registerBeanDefinitionParser(CxfConstants.OUT_FAULT_INTERCEPTORS, new EndpointChildDefinitionParser( |
46 | |
CxfConstants.OUT_FAULT_INTERCEPTORS)); |
47 | |
|
48 | 104 | registerBeanDefinitionParser("stax", new SimpleBeanDefinitionParser(StaxFeature.class)); |
49 | |
|
50 | 104 | registerBeanDefinitionParser("wrapper-component", new ComponentDefinitionParser(WebServiceWrapperComponent.class)); |
51 | 104 | } |
52 | |
} |