org.mule.config.spring.parsers.specific
Class ComponentDelegatingDefinitionParser

java.lang.Object
  extended by org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
      extended by org.mule.config.spring.parsers.delegate.AbstractDelegatingDefinitionParser
          extended by org.mule.config.spring.parsers.delegate.AbstractParallelDelegatingDefinitionParser
              extended by org.mule.config.spring.parsers.specific.ComponentDelegatingDefinitionParser
All Implemented Interfaces:
MuleDefinitionParser, MuleDefinitionParserConfiguration, org.springframework.beans.factory.xml.BeanDefinitionParser

public class ComponentDelegatingDefinitionParser
extends AbstractParallelDelegatingDefinitionParser

Allows for parsing either a shortcut component configuration by delegating to two different component parses depending on the existence of the class attribute. If the class attribute is used then an embedded object factory element cannot be used.

 <component class="">
 
or one with an embedded object factory element.
 <component>
     <singleon-object class=".."/>
 </component>
 


Field Summary
 
Fields inherited from class org.mule.config.spring.parsers.delegate.AbstractDelegatingDefinitionParser
logger
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
 
Constructor Summary
ComponentDelegatingDefinitionParser(Class clazz)
           
 
Method Summary
protected  MuleDefinitionParser getDelegate(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
           
 
Methods inherited from class org.mule.config.spring.parsers.delegate.AbstractParallelDelegatingDefinitionParser
muleParse
 
Methods inherited from class org.mule.config.spring.parsers.delegate.AbstractDelegatingDefinitionParser
addAlias, addBeanFlag, addCollection, addDelegate, addIgnored, addMapping, addMapping, addMapping, addReference, getBeanName, getDelegate, parseInternal, registerPostProcessor, registerPreProcessor, removeIgnored, setDeprecationWarning, setIgnoredDefault, size
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.xml.BeanDefinitionParser
parse
 

Constructor Detail

ComponentDelegatingDefinitionParser

public ComponentDelegatingDefinitionParser(Class clazz)
Method Detail

getDelegate

protected MuleDefinitionParser getDelegate(Element element,
                                           org.springframework.beans.factory.xml.ParserContext parserContext)
Specified by:
getDelegate in class AbstractParallelDelegatingDefinitionParser


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.