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.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, getApplicationContextId, getBeanFactory, getComponentName, getComponentType, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
public final U doTransform(Message<?> message) throws java.lang.Exception
AbstractTransformer
doTransform
in class AbstractTransformer
java.lang.Exception