org.mule.config.spring.parsers.generic
Class NamedDefinitionParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser
org.mule.config.spring.parsers.AbstractHierarchicalDefinitionParser
org.mule.config.spring.parsers.generic.ParentDefinitionParser
org.mule.config.spring.parsers.generic.NamedDefinitionParser
- All Implemented Interfaces:
- MuleDefinitionParser, MuleDefinitionParserConfiguration, org.springframework.beans.factory.xml.BeanDefinitionParser
- Direct Known Subclasses:
- ConfigurationDefinitionParser, ExpressionLanguageDefinitionParser
public class NamedDefinitionParser
- extends ParentDefinitionParser
Behaves as ParentDefinitionParser
,
but allows any named bean to be the parent, rather than using the enclosing element in the DOM tree.
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, NAME_ATTRIBUTE |
Methods inherited from class org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser |
addAlias, addBeanFlag, addCollection, addIgnored, addMapping, addMapping, addMapping, addReference, checkElementNameUnique, createBeanDefinitionBuilder, doParse, getBeanAssemblerFactory, getBeanClassFromAttribute, getBeanName, getClassConstraint, getClassInternal, getParserContext, getRegistry, isAllowClassAttribute, isSingleton, isTopLevel, muleParse, processProperty, registerPostProcessor, registerPreProcessor, removeIgnored, resolveId, setAllowClassAttribute, setBeanAssemblerFactory, setClassConstraint, setDeprecationWarning, 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.springframework.beans.factory.xml.BeanDefinitionParser |
parse |
NamedDefinitionParser
public NamedDefinitionParser()
NamedDefinitionParser
public NamedDefinitionParser(String name)
getName
public String getName()
setName
public void setName(String name)
getParentBeanName
protected String getParentBeanName(Element element)
- Overrides:
getParentBeanName
in class AbstractHierarchicalDefinitionParser
parseInternal
protected org.springframework.beans.factory.support.AbstractBeanDefinition parseInternal(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)
- Description copied from class:
AbstractMuleBeanDefinitionParser
- Creates a
BeanDefinitionBuilder
instance for the bean Class
and passes it to the AbstractMuleBeanDefinitionParser.doParse(org.w3c.dom.Element, org.springframework.beans.factory.xml.ParserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder)
strategy method.
- Overrides:
parseInternal
in class ParentDefinitionParser
- Parameters:
element
- the element that is to be parsed into a single BeanDefinitionparserContext
- the object encapsulating the current state of the parsing
process
- Returns:
- the BeanDefinition resulting from the parsing of the supplied
Element
- See Also:
AbstractMuleBeanDefinitionParser.doParse(org.w3c.dom.Element, org.springframework.beans.factory.xml.ParserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder)
postProcess
protected void postProcess(org.springframework.beans.factory.xml.ParserContext context,
BeanAssembler assembler,
Element element)
- Description copied from class:
AbstractMuleBeanDefinitionParser
- Hook method that derived classes can implement to inspect/change a
bean definition after parsing is complete.
- Overrides:
postProcess
in class ParentDefinitionParser
assembler
- the parsed (and probably totally defined) bean definition being builtelement
- the XML element that was the source of the bean definition's metadata
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.