Class AbstractMessageProcessingTransformer
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.transformer.AbstractMessageProcessingTransformer
- All Implemented Interfaces:
Aware,BeanFactoryAware,BeanNameAware,InitializingBean,ApplicationContextAware,Lifecycle,ComponentSourceAware,ExpressionCapable,GenericTransformer<Message<?>, Message<?>>,NamedComponent,ManageableLifecycle,Transformer
- Direct Known Subclasses:
ExpressionEvaluatingTransformer,MethodInvokingTransformer
public abstract class AbstractMessageProcessingTransformer
extends IntegrationObjectSupport
implements Transformer, ManageableLifecycle
Base class for Message Transformers that delegate to a
MessageProcessor.- Author:
- Mark Fisher, Artem Bilan, Ngoc Nhan
-
Field Summary
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
EXPRESSION_PARSER, logger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMessageProcessingTransformer(MessageProcessor<?> messageProcessor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected voidonInit()Subclasses may implement this for initialization logic.voidsetNotPropagatedHeaders(String... headers) Set headers that will NOT be copied from the inbound message if the handler is configured to copy headers.voidstart()voidstop()final Message<?> Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.integration.support.context.NamedComponent
getComponentType
-
Constructor Details
-
AbstractMessageProcessingTransformer
-
-
Method Details
-
onInit
protected void onInit()Description copied from class:IntegrationObjectSupportSubclasses may implement this for initialization logic.- Overrides:
onInitin classIntegrationObjectSupport
-
start
public void start()- Specified by:
startin interfaceLifecycle- Specified by:
startin interfaceManageableLifecycle
-
stop
public void stop()- Specified by:
stopin interfaceLifecycle- Specified by:
stopin interfaceManageableLifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceLifecycle- Specified by:
isRunningin interfaceManageableLifecycle
-
setNotPropagatedHeaders
Set headers that will NOT be copied from the inbound message if the handler is configured to copy headers.- Parameters:
headers- the headers do not propagate from the inbound message.- Since:
- 5.1
-
transform
- Specified by:
transformin interfaceGenericTransformer<Message<?>, Message<?>>- Specified by:
transformin interfaceTransformer
-