Coverage Report - org.mule.module.ibeans.config.IBeansNamespaceHandler
 
Classes in this File Line Coverage Branch Coverage Complexity
IBeansNamespaceHandler
0%
0/4
N/A
1
 
 1  
 /*
 2  
  * $Id: IBeansNamespaceHandler.java 19191 2010-08-25 21:05:23Z tcarlson $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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  
 package org.mule.module.ibeans.config;
 11  
 
 12  
 import org.mule.config.spring.handlers.AbstractMuleNamespaceHandler;
 13  
 import org.mule.endpoint.URIBuilder;
 14  
 import org.mule.transport.ibean.IBeansConnector;
 15  
 
 16  
 /**
 17  
  * Registers a Bean Definition Parser for handling <code><ibeans:connector></code> elements
 18  
  * and supporting endpoint elements.
 19  
  */
 20  0
 public class IBeansNamespaceHandler extends AbstractMuleNamespaceHandler
 21  
 {
 22  
     public void init()
 23  
     {
 24  
         /* This creates handlers for 'endpoint', 'outbound-endpoint' and 'inbound-endpoint' elements.
 25  
            The defaults are sufficient unless you have endpoint styles different from the Mule standard ones
 26  
            The URIBuilder as constants for common required attributes, but you can also pass in a user-defined String[].
 27  
          */
 28  0
         registerStandardTransportEndpoints(IBeansConnector.PROTOCOL, URIBuilder.PATH_ATTRIBUTES);
 29  
 
 30  
         /* This will create the handler for your custom 'connector' element.  You will need to add handlers for any other
 31  
            xml elements you define.  For more information see:
 32  
            http://www.mulesoft.org/documentation/display/MULE3USER/Creating+a+Custom+XML+Namespace
 33  
         */
 34  0
         registerConnectorDefinitionParser(IBeansConnector.class);
 35  0
     }
 36  
 }