Class AbstractPayloadTransformer<T,U>
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.transformer.AbstractTransformer
org.springframework.integration.transformer.AbstractPayloadTransformer<T,U>
- All Implemented Interfaces:
Aware,BeanFactoryAware,BeanNameAware,InitializingBean,ApplicationContextAware,ExpressionCapable,NamedComponent,GenericTransformer<Message<?>,Message<?>>,Transformer
- Direct Known Subclasses:
EncodingPayloadTransformer,MapToObjectTransformer,ObjectToMapTransformer,ObjectToStringTransformer,PayloadTypeConvertingTransformer,SourceCreatingTransformer,SyslogToMapTransformer,UnmarshallingTransformer
public abstract class AbstractPayloadTransformer<T,U> extends AbstractTransformer
A base class for
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.- Author:
- Mark Fisher
-
Field Summary
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
EXPRESSION_PARSER, logger -
Constructor Summary
Constructors Constructor Description AbstractPayloadTransformer() -
Method Summary
Modifier and Type Method Description UdoTransform(Message<?> message)Subclasses must implement this method to provide the transformation logic.protected abstract UtransformPayload(T payload)Methods inherited from class org.springframework.integration.transformer.AbstractTransformer
transformMethods inherited from class org.springframework.integration.context.IntegrationObjectSupport
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
-
Constructor Details
-
AbstractPayloadTransformer
public AbstractPayloadTransformer()
-
-
Method Details
-
doTransform
Description copied from class:AbstractTransformerSubclasses must implement this method to provide the transformation logic. If the return value is itself a Message, it will be used as the result. Otherwise, any non-null return value will be used as the payload of the result Message.- Specified by:
doTransformin classAbstractTransformer- Parameters:
message- The message.- Returns:
- The result of the transformation.
-
transformPayload
-