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.logger
Constructor and Description |
---|
MapToObjectTransformer(java.lang.Class<?> targetClass) |
MapToObjectTransformer(java.lang.String beanName) |
Modifier and Type | Method and Description |
---|---|
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
protected java.lang.Object |
transformPayload(java.util.Map<?,?> payload) |
doTransform
transform
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getComponentType, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
public MapToObjectTransformer(java.lang.Class<?> targetClass)
targetClass
- public MapToObjectTransformer(java.lang.String beanName)
beanName
- protected 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
protected void onInit()
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport