Coverage Report - org.mule.config.spring.parsers.specific.BridgeDefinitionParser
 
Classes in this File Line Coverage Branch Coverage Complexity
BridgeDefinitionParser
0%
0/7
N/A
0
 
 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.config.spring.parsers.specific;
 8  
 
 9  
 import org.mule.config.spring.factories.BridgeFactoryBean;
 10  
 import org.mule.config.spring.parsers.processors.CheckExclusiveAttributes;
 11  
 import org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren;
 12  
 import org.w3c.dom.Element;
 13  
 
 14  
 public class BridgeDefinitionParser extends AbstractFlowConstructDefinitionParser
 15  
 {
 16  
     public BridgeDefinitionParser()
 17  0
     {
 18  0
         super.registerPreProcessor(new CheckExclusiveAttributes(new String[][]{
 19  
             new String[]{INBOUND_ADDRESS_ATTRIBUTE}, new String[]{INBOUND_ENDPOINT_REF_ATTRIBUTE}}));
 20  
         
 21  0
         super.registerPreProcessor(new CheckExclusiveAttributes(new String[][]{
 22  
             new String[]{OUTBOUND_ADDRESS_ATTRIBUTE}, new String[]{OUTBOUND_ENDPOINT_REF_ATTRIBUTE}}));
 23  
         
 24  0
         super.registerPreProcessor(new CheckExclusiveAttributesAndChildren(new String[]{
 25  
             INBOUND_ENDPOINT_REF_ATTRIBUTE, INBOUND_ADDRESS_ATTRIBUTE}, new String[]{INBOUND_ENDPOINT_CHILD}));
 26  
         
 27  0
         super.registerPreProcessor(new CheckExclusiveAttributesAndChildren(new String[]{
 28  
             OUTBOUND_ENDPOINT_REF_ATTRIBUTE, OUTBOUND_ADDRESS_ATTRIBUTE, TRANSFORMER_REFS_ATTRIBUTE,
 29  
             RESPONSE_TRANSFORMER_REFS_ATTRIBUTE}, new String[]{OUTBOUND_ENDPOINT_CHILD}));
 30  0
     }
 31  
 
 32  
     @Override
 33  
     protected Class<?> getBeanClass(Element element)
 34  
     {
 35  0
         return BridgeFactoryBean.class;
 36  
     }
 37  
 }