public class TwoStageMapBeanAssembler extends AbstractMapBeanAssembler
MapDefinitionParserMutator - it takes a normal bean
definition and re-packages it as a map (rather than individual values). The difference between this and
AttributeMapBeanAssemblerFactory is that this allows child elements to
generate the properties (it's an ugly consequence of the fact that BDPs are called before nested children - this is a hack that
gets "re-called" after the children to complete the work).bean, target, targetConfig| Constructor and Description |
|---|
TwoStageMapBeanAssembler(TwoStageMapBeanAssemblerFactory.BeanAssemblerStore store,
PropertyConfiguration beanConfig,
org.springframework.beans.factory.support.BeanDefinitionBuilder bean,
PropertyConfiguration targetConfig,
org.springframework.beans.factory.config.BeanDefinition target) |
| Modifier and Type | Method and Description |
|---|---|
void |
insertBeanInTarget(String oldName)
We overwrite this method to populate a map instead of inserting the definition.
|
insertDefinitionAsMapaddAnnotationValue, addPropertyWithoutReference, addPropertyWithReference, assertTargetPresent, bestGuessName, copyBeanToTarget, extendBean, extendBean, extendTarget, extendTarget, extendTarget, getBean, getBeanConfig, getTarget, getTargetConfig, insertInTarget, insertSingletonBeanInTarget, isAnnotationsPropertyAvailable, isAnnotationsPropertyAvailable, methodExists, retrieveList, setBean, setBeanFlagpublic TwoStageMapBeanAssembler(TwoStageMapBeanAssemblerFactory.BeanAssemblerStore store, PropertyConfiguration beanConfig, org.springframework.beans.factory.support.BeanDefinitionBuilder bean, PropertyConfiguration targetConfig, org.springframework.beans.factory.config.BeanDefinition target)
public void insertBeanInTarget(String oldName)
MuleHierarchicalBeanDefinitionParserDelegate) and our enclosing bean definition
parser is called again. At the same time, to avoid complicating otherwise "normal" BDPs, we pass this assembler to a
callback, so that it can be called the second time in a more direct way.insertBeanInTarget in interface BeanAssemblerinsertBeanInTarget in class DefaultBeanAssembleroldName - The identifying the bean (typically element name).Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.