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, postProcessforceParent, getBeanAssembler, getOrphanBeanAssembler, getParentBeanDefinition, getParentBeanName, getParentElement, getTargetPropertyConfigurationaddAlias, addBeanFlag, addCollection, addIgnored, addMapping, addMapping, addMapping, addReference, checkElementNameUnique, createBeanDefinitionBuilder, getBeanAssemblerFactory, getBeanClassFromAttribute, getClassConstraint, getClassInternal, getConfigFileIdentifier, getParserContext, getRegistry, isAllowClassAttribute, isSingleton, isTopLevel, muleParse, parseInternal, processMetadataAnnotations, processMetadataAnnotationsHelper, processProperty, registerPostProcessor, registerPreProcessor, removeIgnored, resolveId, setAllowClassAttribute, setBeanAssemblerFactory, setClassConstraint, setIgnoredDefault, setParserContext, setRegistryparse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliasesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforceParent, getTargetPropertyConfigurationmuleParseaddAlias, addBeanFlag, addCollection, addIgnored, addMapping, addMapping, addMapping, addReference, registerPostProcessor, registerPreProcessor, removeIgnored, setIgnoredDefaultpublic 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)
AbstractMuleBeanDefinitionParserpreProcess in class AbstractHierarchicalDefinitionParserprotected 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)public String getPropertyName(Element e)
getPropertyName in class AbstractChildDefinitionParserCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.