public class NamedDefinitionParser extends ParentDefinitionParser
ParentDefinitionParser
,
but allows any named bean to be the parent, rather than using the enclosing element in the DOM tree.ATTRIBUTE_CLASS, ATTRIBUTE_ID, ATTRIBUTE_NAME, ATTRIBUTE_REF, ATTRIBUTE_REF_SUFFIX, ATTRIBUTE_REFS, ATTRIBUTE_REFS_SUFFIX, beanPropertyConfiguration, DOMAIN_ROOT_ELEMENT, logger, ROOT_ELEMENT, singleton
Constructor and Description |
---|
NamedDefinitionParser() |
NamedDefinitionParser(String name) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
protected String |
getParentBeanName(Element element) |
protected org.springframework.beans.factory.support.AbstractBeanDefinition |
parseInternal(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)
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. |
protected void |
postProcess(org.springframework.beans.factory.xml.ParserContext context,
BeanAssembler assembler,
Element element)
Hook method that derived classes can implement to inspect/change a
bean definition after parsing is complete.
|
void |
setName(String name) |
getBeanClass, processMetadataAnnotations
forceParent, getBeanAssembler, getOrphanBeanAssembler, getParentBeanDefinition, getTargetPropertyConfiguration, preProcess
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, setIgnoredDefault, setParserContext, setRegistry
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
public NamedDefinitionParser()
public NamedDefinitionParser(String name)
public String getName()
public void setName(String name)
protected String getParentBeanName(Element element)
getParentBeanName
in class AbstractHierarchicalDefinitionParser
protected org.springframework.beans.factory.support.AbstractBeanDefinition parseInternal(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
AbstractMuleBeanDefinitionParser
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.parseInternal
in class ParentDefinitionParser
element
- the element that is to be parsed into a single BeanDefinitionparserContext
- the object encapsulating the current state of the parsing
processElement
AbstractMuleBeanDefinitionParser.doParse(org.w3c.dom.Element, org.springframework.beans.factory.xml.ParserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder)
protected void postProcess(org.springframework.beans.factory.xml.ParserContext context, BeanAssembler assembler, Element element)
AbstractMuleBeanDefinitionParser
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 metadataCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.