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) |
doTransform
transform
afterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
public MapToObjectTransformer(java.lang.Class<?> targetClass)
targetClass
- The target class.public MapToObjectTransformer(java.lang.String beanName)
beanName
- The bean name.public java.lang.String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport
protected void onInit()
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
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