Coverage Report - org.mule.transport.jnp.config.JnpNamespaceHandler
 
Classes in this File Line Coverage Branch Coverage Complexity
JnpNamespaceHandler
0%
0/6
N/A
1
 
 1  
 /*
 2  
  * $Id: JnpNamespaceHandler.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.transport.jnp.config;
 11  
 
 12  
 import org.mule.config.spring.factories.InboundEndpointFactoryBean;
 13  
 import org.mule.config.spring.factories.OutboundEndpointFactoryBean;
 14  
 import org.mule.config.spring.handlers.AbstractMuleNamespaceHandler;
 15  
 import org.mule.config.spring.parsers.specific.endpoint.TransportEndpointDefinitionParser;
 16  
 import org.mule.config.spring.parsers.specific.endpoint.TransportGlobalEndpointDefinitionParser;
 17  
 import org.mule.endpoint.URIBuilder;
 18  
 import org.mule.transport.jnp.JnpConnector;
 19  
 import org.mule.transport.rmi.config.RmiNamespaceHandler;
 20  
 
 21  
 /**
 22  
  * Registers a Bean Definition Parser for handling <code>&lt;jnp:connector&gt;</code> elements.
 23  
  *
 24  
  */
 25  0
 public class JnpNamespaceHandler extends AbstractMuleNamespaceHandler
 26  
 {
 27  
 
 28  
     public void init()
 29  
     {
 30  0
         registerMuleBeanDefinitionParser("endpoint", new TransportGlobalEndpointDefinitionParser(JnpConnector.JNP, TransportGlobalEndpointDefinitionParser.PROTOCOL, RmiNamespaceHandler.ADDRESS, RmiNamespaceHandler.PROPERTIES)).addAlias(RmiNamespaceHandler.OBJECT, URIBuilder.PATH);
 31  0
         registerMuleBeanDefinitionParser("inbound-endpoint", new TransportEndpointDefinitionParser(JnpConnector.JNP, TransportGlobalEndpointDefinitionParser.PROTOCOL, InboundEndpointFactoryBean.class, RmiNamespaceHandler.ADDRESS, RmiNamespaceHandler.PROPERTIES)).addAlias(RmiNamespaceHandler.OBJECT, URIBuilder.PATH);
 32  0
         registerMuleBeanDefinitionParser("outbound-endpoint", new TransportEndpointDefinitionParser(JnpConnector.JNP, TransportGlobalEndpointDefinitionParser.PROTOCOL, OutboundEndpointFactoryBean.class, RmiNamespaceHandler.ADDRESS, RmiNamespaceHandler.PROPERTIES)).addAlias(RmiNamespaceHandler.OBJECT, URIBuilder.PATH);
 33  0
         registerConnectorDefinitionParser(JnpConnector.class);
 34  0
     }
 35  
 
 36  
 }