public class MapToObjectTransformer extends AbstractPayloadTransformer<java.util.Map<?,?>,java.lang.Object>
MessageTransformationException will be thrown.
This transformer is integrated with the ConversionService allowing values in the Map to be converted
to types that represent the properties of the Object.EXPRESSION_PARSER, logger| Constructor and Description |
|---|
MapToObjectTransformer(java.lang.Class<?> targetClass) |
MapToObjectTransformer(java.lang.String beanName) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
protected java.lang.Object |
transformPayload(java.util.Map<?,?> payload) |
doTransformtransformafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringpublic MapToObjectTransformer(java.lang.Class<?> targetClass)
targetClass - The target class.public MapToObjectTransformer(java.lang.String beanName)
beanName - The bean name.public java.lang.String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportprotected void onInit()
IntegrationObjectSupportonInit in class IntegrationObjectSupportprotected java.lang.Object transformPayload(java.util.Map<?,?> payload)
throws java.lang.Exception
transformPayload in class AbstractPayloadTransformer<java.util.Map<?,?>,java.lang.Object>java.lang.Exception