Class AbstractTransformer
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.transformer.AbstractTransformer
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,BeanNameAware
,InitializingBean
,ApplicationContextAware
,ExpressionCapable
,GenericTransformer<Message<?>,
,Message<?>> NamedComponent
,Transformer
- Direct Known Subclasses:
AbstractPayloadTransformer
,AbstractXmlTransformer
,AbstractZipTransformer
,ClaimCheckInTransformer
,ClaimCheckOutTransformer
,DecodingTransformer
,FromProtobufTransformer
,JsonToObjectTransformer
,ObjectToJsonTransformer
,SimpleFromAvroTransformer
,SimpleToAvroTransformer
,StreamTransformer
,ToProtobufTransformer
,XPathTransformer
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
-
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, 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.
-