Coverage Report - org.mule.transport.cxf.config.CxfNamespaceHandler
 
Classes in this File Line Coverage Branch Coverage Complexity
CxfNamespaceHandler
100%
12/12
N/A
1
 
 1  
 /*
 2  
  * $Id: CxfNamespaceHandler.java 12283 2008-07-10 18:16:53Z dandiep $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 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  
 }