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) |
doTransform
transform
afterPropertiesSet, 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, toString
public MapToObjectTransformer(Class<?> targetClass)
targetClass
- The target class.public MapToObjectTransformer(String beanName)
beanName
- The bean name.public String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport
protected void onInit()
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
protected Object transformPayload(Map<?,?> payload)
transformPayload
in class AbstractPayloadTransformer<Map<?,?>,Object>