Class AbstractTransformer
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.transformer.AbstractTransformer
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,BeanNameAware
,InitializingBean
,ApplicationContextAware
,ExpressionCapable
,NamedComponent
,GenericTransformer<Message<?>,Message<?>>
,Transformer
- Direct Known Subclasses:
AbstractPayloadTransformer
,AbstractXmlTransformer
,ClaimCheckInTransformer
,ClaimCheckOutTransformer
,DecodingTransformer
,JsonToObjectTransformer
,ObjectToJsonTransformer
,SimpleFromAvroTransformer
,SimpleToAvroTransformer
,StreamTransformer
,XPathTransformer
public abstract class AbstractTransformer extends IntegrationObjectSupport implements Transformer
A base class for
Transformer
implementations.- Author:
- Mark Fisher, Oleg Zhurakousky
-
Field Summary
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
EXPRESSION_PARSER, logger
-
Constructor Summary
Constructors Constructor Description AbstractTransformer()
-
Method Summary
Methods 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
-
AbstractTransformer
public AbstractTransformer()
-
-
Method Details
-
transform
- Specified by:
transform
in interfaceGenericTransformer<Message<?>,Message<?>>
- Specified by:
transform
in interfaceTransformer
-
doTransform
Subclasses 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.- Parameters:
message
- The message.- Returns:
- The result of the transformation.
-