Coverage Report - org.mule.config.spring.parsers.specific.FlowDefinitionParser
 
Classes in this File Line Coverage Branch Coverage Complexity
FlowDefinitionParser
0%
0/8
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.api.config.MuleProperties;
 10  
 import org.mule.config.spring.parsers.generic.OrphanDefinitionParser;
 11  
 import org.mule.construct.SimpleFlowConstruct;
 12  
 import org.springframework.beans.factory.support.BeanDefinitionBuilder;
 13  
 import org.springframework.beans.factory.xml.ParserContext;
 14  
 import org.w3c.dom.Element;
 15  
 
 16  
 public class FlowDefinitionParser extends OrphanDefinitionParser
 17  
 {
 18  
 
 19  
     public FlowDefinitionParser()
 20  
     {
 21  0
         super(SimpleFlowConstruct.class, true);
 22  0
         addIgnored("abstract");
 23  0
         addIgnored("name");
 24  0
     }
 25  
 
 26  
     @java.lang.Override
 27  
     protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder)
 28  
     {
 29  0
         builder.addConstructorArgValue(element.getAttribute(ATTRIBUTE_NAME));
 30  0
         builder.addConstructorArgReference(MuleProperties.OBJECT_MULE_CONTEXT);
 31  0
         super.doParse(element, parserContext, builder);
 32  0
     }
 33  
 
 34  
 }