Coverage Report - org.mule.module.sxc.SxcNamespaceHandler
 
Classes in this File Line Coverage Branch Coverage Complexity
SxcNamespaceHandler
0%
0/5
N/A
1
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.module.sxc;
 8  
 
 9  
 import org.mule.config.spring.handlers.AbstractMuleNamespaceHandler;
 10  
 import org.mule.config.spring.parsers.collection.ChildMapEntryDefinitionParser;
 11  
 import org.mule.config.spring.parsers.generic.ChildDefinitionParser;
 12  
 import org.mule.config.spring.parsers.specific.FilterDefinitionParser;
 13  
 import org.mule.config.spring.parsers.specific.RouterDefinitionParser;
 14  
 
 15  0
 public class SxcNamespaceHandler extends AbstractMuleNamespaceHandler
 16  
 {
 17  
     public void init()
 18  
     {        
 19  0
         registerBeanDefinitionParser("filtering-router",
 20  
                 new RouterDefinitionParser(SxcFilteringOutboundRouter.class)    );
 21  0
          registerBeanDefinitionParser("namespace",
 22  
              new ChildMapEntryDefinitionParser("namespaces", "prefix", "uri"));
 23  
 
 24  0
         registerBeanDefinitionParser("filter", 
 25  
                 new FilterDefinitionParser(SxcFilter.class));
 26  0
     }
 27  
 }