public class ChildDefinitionParser extends AbstractChildDefinitionParser
Modifier and Type | Field and Description |
---|---|
protected Class<?> |
clazz |
protected String |
setterMethod |
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 |
---|
ChildDefinitionParser(String setterMethod)
The class will be inferred from the class attribute
|
ChildDefinitionParser(String setterMethod,
Class<?> clazz) |
ChildDefinitionParser(String setterMethod,
Class<?> clazz,
boolean singleton) |
ChildDefinitionParser(String setterMethod,
Class<?> clazz,
Class<?> constraint)
The class (which is inferred from the class attribute if null here) is checked to be
a subclass of the constraint
|
ChildDefinitionParser(String setterMethod,
Class<?> clazz,
Class<?> constraint,
boolean allowClassAttribute)
The class (which is inferred from the class attribute if null here) is checked to be
a subclass of the constraint.
|
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
getBeanClass(Element element)
Determine the bean class corresponding to the supplied
Element . |
String |
getPropertyName(Element e) |
protected void |
preProcess(Element element)
Hook method that derived classes can implement to modify internal state before processing.
|
doParse, getBeanName, parseChild, postProcess
forceParent, getBeanAssembler, getOrphanBeanAssembler, getParentBeanDefinition, getParentBeanName, getTargetPropertyConfiguration
addAlias, addBeanFlag, addCollection, addIgnored, addMapping, addMapping, addMapping, addReference, checkElementNameUnique, createBeanDefinitionBuilder, getBeanAssemblerFactory, getBeanClassFromAttribute, getClassConstraint, getClassInternal, getParserContext, getRegistry, isAllowClassAttribute, isSingleton, isTopLevel, muleParse, parseInternal, processMetadataAnnotations, processProperty, registerPostProcessor, registerPreProcessor, removeIgnored, resolveId, setAllowClassAttribute, setBeanAssemblerFactory, setClassConstraint, setIgnoredDefault, setParserContext, setRegistry
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forceParent, getTargetPropertyConfiguration
muleParse
addAlias, addBeanFlag, addCollection, addIgnored, addMapping, addMapping, addMapping, addReference, registerPostProcessor, registerPreProcessor, removeIgnored, setIgnoredDefault
public ChildDefinitionParser(String setterMethod)
setterMethod
- The target method (where the child will be injected)public ChildDefinitionParser(String setterMethod, Class<?> clazz)
setterMethod
- The target method (where the child will be injected)clazz
- The class created by this element/parserpublic ChildDefinitionParser(String setterMethod, Class<?> clazz, boolean singleton)
setterMethod
- clazz
- singleton
- determines is bean should be singleton or notpublic ChildDefinitionParser(String setterMethod, Class<?> clazz, Class<?> constraint)
setterMethod
- The target method (where the child will be injected)clazz
- The class created by this element/parser (may be null)constraint
- Superclass of clazz (may be null)public ChildDefinitionParser(String setterMethod, Class<?> clazz, Class<?> constraint, boolean allowClassAttribute)
setterMethod
- The target method (where the child will be injected)clazz
- The class created by this element/parser (may be null)constraint
- Superclass of clazz (may be null)allowClassAttribute
- Is class read from class attribute (if present, takes precedence over clazz)protected void preProcess(Element element)
AbstractMuleBeanDefinitionParser
preProcess
in class AbstractHierarchicalDefinitionParser
protected Class<?> getBeanClass(Element element)
AbstractMuleBeanDefinitionParser
Element
.getBeanClass
in class AbstractMuleBeanDefinitionParser
element
- 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)
public String getPropertyName(Element e)
getPropertyName
in class AbstractChildDefinitionParser
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.