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  
  * $Id: ServiceDefinitionParser.java 13129 2008-10-24 15:31:16Z aperepel $
 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.api.config.MuleProperties;
 14  
 import org.mule.config.spring.parsers.generic.OrphanDefinitionParser;
 15  
 import org.mule.construct.SimpleFlowConstruct;
 16  
 import org.springframework.beans.factory.support.BeanDefinitionBuilder;
 17  
 import org.springframework.beans.factory.xml.ParserContext;
 18  
 import org.w3c.dom.Element;
 19  
 
 20  
 public class FlowDefinitionParser extends OrphanDefinitionParser
 21  
 {
 22  
 
 23  
     public FlowDefinitionParser()
 24  
     {
 25  0
         super(SimpleFlowConstruct.class, true);
 26  0
         addIgnored("abstract");
 27  0
         addIgnored("name");
 28  0
     }
 29  
 
 30  
     @java.lang.Override
 31  
     protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder)
 32  
     {
 33  0
         builder.addConstructorArgValue(element.getAttribute(ATTRIBUTE_NAME));
 34  0
         builder.addConstructorArgReference(MuleProperties.OBJECT_MULE_CONTEXT);
 35  0
         super.doParse(element, parserContext, builder);
 36  0
     }
 37  
 
 38  
 }