org.mule.config.spring.parsers.collection
Class AttributeListEntryDefinitionParser

java.lang.Object
  extended by org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
      extended by org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser
          extended by org.mule.config.spring.parsers.AbstractHierarchicalDefinitionParser
              extended by org.mule.config.spring.parsers.AbstractChildDefinitionParser
                  extended by org.mule.config.spring.parsers.collection.AttributeListEntryDefinitionParser
All Implemented Interfaces:
DynamicAttributeDefinitionParser, MuleChildDefinitionParser, MuleDefinitionParser, MuleDefinitionParserConfiguration, org.springframework.beans.factory.xml.BeanDefinitionParser

public class AttributeListEntryDefinitionParser
extends AbstractChildDefinitionParser
implements DynamicAttributeDefinitionParser


Field Summary
 
Fields inherited from class org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser
ATTRIBUTE_CLASS, ATTRIBUTE_ID, ATTRIBUTE_NAME, ATTRIBUTE_REF, ATTRIBUTE_REF_SUFFIX, ATTRIBUTE_REFS, ATTRIBUTE_REFS_SUFFIX, beanPropertyConfiguration, logger, ROOT_ELEMENT, singleton
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE
 
Constructor Summary
AttributeListEntryDefinitionParser(String setterMethod)
          Only for use with dynamic naming
AttributeListEntryDefinitionParser(String setterMethod, String attributeName)
           
 
Method Summary
protected  Class getBeanClass(Element element)
          Determine the bean class corresponding to the supplied Element.
 String getPropertyName(Element element)
           
protected  void parseChild(Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
           
 void setAttributeName(String attributeName)
           
 
Methods inherited from class org.mule.config.spring.parsers.AbstractChildDefinitionParser
doParse, getBeanName, postProcess
 
Methods inherited from class org.mule.config.spring.parsers.AbstractHierarchicalDefinitionParser
forceParent, getBeanAssembler, getOrphanBeanAssembler, getParentBeanDefinition, getParentBeanName, getTargetPropertyConfiguration, preProcess
 
Methods inherited from class org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser
addAlias, addBeanFlag, addCollection, addIgnored, addMapping, addMapping, addMapping, addReference, checkElementNameUnique, createBeanDefinitionBuilder, getBeanAssemblerFactory, getBeanClassFromAttribute, getClassConstraint, getClassInternal, getParserContext, getRegistry, isAllowClassAttribute, isSingleton, isTopLevel, muleParse, parseInternal, processProperty, registerPostProcessor, registerPreProcessor, removeIgnored, resolveId, setAllowClassAttribute, setBeanAssemblerFactory, setClassConstraint, setIgnoredDefault, setParserContext, setRegistry
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, registerBeanDefinition, 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.mule.config.spring.parsers.collection.DynamicAttributeDefinitionParser
forceParent
 
Methods inherited from interface org.mule.config.spring.parsers.MuleDefinitionParser
getBeanName, muleParse
 
Methods inherited from interface org.springframework.beans.factory.xml.BeanDefinitionParser
parse
 
Methods inherited from interface org.mule.config.spring.parsers.MuleDefinitionParserConfiguration
addAlias, addBeanFlag, addCollection, addIgnored, addMapping, addMapping, addMapping, addReference, registerPostProcessor, registerPreProcessor, removeIgnored, setIgnoredDefault
 
Methods inherited from interface org.mule.config.spring.parsers.MuleChildDefinitionParser
forceParent, getTargetPropertyConfiguration
 

Constructor Detail

AttributeListEntryDefinitionParser

public AttributeListEntryDefinitionParser(String setterMethod)
Only for use with dynamic naming


AttributeListEntryDefinitionParser

public AttributeListEntryDefinitionParser(String setterMethod,
                                          String attributeName)
Method Detail

getPropertyName

public String getPropertyName(Element element)
Specified by:
getPropertyName in class AbstractChildDefinitionParser

getBeanClass

protected Class getBeanClass(Element element)
Description copied from class: AbstractMuleBeanDefinitionParser
Determine the bean class corresponding to the supplied Element.

Specified by:
getBeanClass in class AbstractMuleBeanDefinitionParser
Parameters:
element - the Element that is being parsed
Returns:
the Class of the bean that is being defined via parsing the supplied Element (must not be null)
See Also:
AbstractMuleBeanDefinitionParser.parseInternal(org.w3c.dom.Element,ParserContext)

setAttributeName

public void setAttributeName(String attributeName)
Specified by:
setAttributeName in interface DynamicAttributeDefinitionParser

parseChild

protected void parseChild(Element element,
                          org.springframework.beans.factory.xml.ParserContext parserContext,
                          org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
Overrides:
parseChild in class AbstractChildDefinitionParser


Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.