public class MapToObjectTransformer extends AbstractPayloadTransformer<Map<?,?>,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(Class<?> targetClass) |
MapToObjectTransformer(String beanName) |
| Modifier and Type | Method and Description |
|---|---|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
protected Object |
transformPayload(Map<?,?> payload) |
doTransformtransformafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringpublic MapToObjectTransformer(Class<?> targetClass)
targetClass - The target class.public MapToObjectTransformer(String beanName)
beanName - The bean name.public String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportprotected void onInit()
IntegrationObjectSupportonInit in class IntegrationObjectSupportprotected Object transformPayload(Map<?,?> payload)
transformPayload in class AbstractPayloadTransformer<Map<?,?>,Object>