Coverage Report - org.mule.config.spring.parsers.specific.FlowRefDefinitionParser
 
Classes in this File Line Coverage Branch Coverage Complexity
FlowRefDefinitionParser
0%
0/6
N/A
0
 
 1  
 /*
 2  
  * $Id: FlowRefDefinitionParser.java 20452 2010-12-03 13:58:49Z dfeist $
 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  
 
 11  
 package org.mule.config.spring.parsers.specific;
 12  
 
 13  
 import org.mule.config.spring.factories.FlowRefFactoryBean;
 14  
 import org.mule.config.spring.parsers.generic.AutoIdUtils;
 15  
 import org.mule.config.spring.parsers.generic.ChildDefinitionParser;
 16  
 
 17  
 import org.springframework.beans.factory.support.BeanDefinitionBuilder;
 18  
 import org.springframework.beans.factory.xml.ParserContext;
 19  
 import org.w3c.dom.Element;
 20  
 
 21  
 public class FlowRefDefinitionParser extends ChildDefinitionParser
 22  
 {
 23  
 
 24  
     public FlowRefDefinitionParser()
 25  
     {
 26  0
         super("messageProcessor", FlowRefFactoryBean.class);
 27  0
     }
 28  
 
 29  
     @Override
 30  
     protected void parseChild(Element element, ParserContext parserContext, BeanDefinitionBuilder builder)
 31  
     {
 32  0
         super.parseChild(element, parserContext, builder);
 33  0
     }
 34  
 
 35  
     public String getBeanName(Element element)
 36  
     {
 37  0
         return AutoIdUtils.uniqueValue("flow-ref." + element.getAttribute(ATTRIBUTE_NAME));
 38  
     }
 39  
 
 40  
     @Override
 41  
     protected void checkElementNameUnique(Element element)
 42  
     {
 43  
         // We want to check element name exists
 44  0
     }
 45  
 
 46  
 }