public abstract class AbstractPayloadTransformer<T,U> extends AbstractTransformer
Transformer
implementations that modify the payload
of a Message
. If the return value is itself a Message, it will be
used as the result. Otherwise, the return value will be used as the payload
of the result Message.EXPRESSION_PARSER, logger
Constructor and Description |
---|
AbstractPayloadTransformer() |
Modifier and Type | Method and Description |
---|---|
U |
doTransform(Message<?> message)
Subclasses must implement this method to provide the transformation
logic.
|
protected abstract U |
transformPayload(T payload) |
transform
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, onInit, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
public final U doTransform(Message<?> message)
AbstractTransformer
doTransform
in class AbstractTransformer
message
- The message.