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.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, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, 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) throws Exception
transformPayload in class AbstractPayloadTransformer<Map<?,?>,Object>Exception