org.mule.config.spring.parsers.assembly
Class AttributeMapBeanAssembler
java.lang.Object
org.mule.config.spring.parsers.assembly.DefaultBeanAssembler
org.mule.config.spring.parsers.assembly.AbstractMapBeanAssembler
org.mule.config.spring.parsers.assembly.AttributeMapBeanAssembler
- All Implemented Interfaces:
- BeanAssembler
public class AttributeMapBeanAssembler
- extends AbstractMapBeanAssembler
This can be used inside a ChildDefinitionParser
- it
takes named properties and, instead of inserting them individually on the target, it packages them as
a Map and inserts that.
Method Summary |
void |
insertBeanInTarget(String oldName)
We override this method to insert a map instead of the definition. |
Methods inherited from class org.mule.config.spring.parsers.assembly.DefaultBeanAssembler |
addAnnotationValue, addPropertyWithoutReference, addPropertyWithReference, assertTargetPresent, bestGuessName, copyBeanToTarget, extendBean, extendBean, extendTarget, extendTarget, extendTarget, getBean, getBeanConfig, getTarget, getTargetConfig, insertInTarget, insertSingletonBeanInTarget, isAnnotationsPropertyAvailable, isAnnotationsPropertyAvailable, methodExists, retrieveList, setBean, setBeanFlag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeMapBeanAssembler
public AttributeMapBeanAssembler(PropertyConfiguration beanConfig,
org.springframework.beans.factory.support.BeanDefinitionBuilder bean,
PropertyConfiguration targetConfig,
org.springframework.beans.factory.config.BeanDefinition target)
insertBeanInTarget
public void insertBeanInTarget(String oldName)
- We override this method to insert a map instead of the definition.
- Specified by:
insertBeanInTarget
in interface BeanAssembler
- Overrides:
insertBeanInTarget
in class DefaultBeanAssembler
- Parameters:
oldName
- The identifying the bean (typically element name).
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.