public class OrphanDefinitionParser extends AbstractMuleBeanDefinitionParser
Contructs a single, standalone bean from an element - it is not injected into any other object. This parser can be configured to automatically set the class of the object, the init and destroy methods and whether this object is a singleton.
Typically, you should use MuleOrphanDefinitionParser instead of this
class, since these elements occur in the
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 |
|---|
OrphanDefinitionParser(boolean singleton)
This constructor assumes that the class name will be explicitly specified as
an attribute on the element.
|
OrphanDefinitionParser(Class<?> beanClass,
boolean singleton) |
| Modifier and Type | Method and Description |
|---|---|
protected Class<?> |
getBeanClass(Element element)
Determine the bean class corresponding to the supplied
Element. |
protected void |
preProcess(Element element)
Hook method that derived classes can implement to modify internal state before processing.
|
addAlias, addBeanFlag, addCollection, addIgnored, addMapping, addMapping, addMapping, addReference, checkElementNameUnique, createBeanDefinitionBuilder, doParse, getBeanAssembler, getBeanAssemblerFactory, getBeanClassFromAttribute, getBeanName, getClassConstraint, getClassInternal, getParserContext, getRegistry, isAllowClassAttribute, isSingleton, isTopLevel, muleParse, parseInternal, postProcess, processProperty, registerPostProcessor, registerPreProcessor, removeIgnored, resolveId, setAllowClassAttribute, setBeanAssemblerFactory, setClassConstraint, setIgnoredDefault, setParserContext, setRegistryparse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliasespublic OrphanDefinitionParser(boolean singleton)
public OrphanDefinitionParser(Class<?> beanClass, boolean singleton)
protected void preProcess(Element element)
AbstractMuleBeanDefinitionParserpreProcess in class AbstractMuleBeanDefinitionParserprotected Class<?> getBeanClass(Element element)
AbstractMuleBeanDefinitionParserElement.getBeanClass in class AbstractMuleBeanDefinitionParserelement - the Element that is being parsedClass of the bean that is being defined via parsing the supplied Element
(must not be null)AbstractMuleBeanDefinitionParser.parseInternal(org.w3c.dom.Element,ParserContext)Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.