Class AbstractMessageProcessingTransformer
java.lang.Object
org.springframework.integration.transformer.AbstractMessageProcessingTransformer
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,Lifecycle
,GenericTransformer<Message<?>,
,Message<?>> ManageableLifecycle
,Transformer
- Direct Known Subclasses:
ExpressionEvaluatingTransformer
,MethodInvokingTransformer
public abstract class AbstractMessageProcessingTransformer
extends Object
implements Transformer, BeanFactoryAware, ManageableLifecycle
Base class for Message Transformers that delegate to a
MessageProcessor
.- Author:
- Mark Fisher, Artem Bilan
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractMessageProcessingTransformer
(MessageProcessor<?> messageProcessor) -
Method Summary
Modifier and TypeMethodDescriptionprotected MessageBuilderFactory
boolean
void
setBeanFactory
(BeanFactory beanFactory) void
setNotPropagatedHeaders
(String... headers) Set headers that will NOT be copied from the inbound message if the handler is configured to copy headers.void
start()
void
stop()
final Message<?>
-
Constructor Details
-
AbstractMessageProcessingTransformer
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
-
getMessageBuilderFactory
-
start
public void start()- Specified by:
start
in interfaceLifecycle
- Specified by:
start
in interfaceManageableLifecycle
-
stop
public void stop()- Specified by:
stop
in interfaceLifecycle
- Specified by:
stop
in interfaceManageableLifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceLifecycle
- Specified by:
isRunning
in 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 to not propagate from the inbound message.- Since:
- 5.1
-
transform
- Specified by:
transform
in interfaceGenericTransformer<Message<?>,
Message<?>> - Specified by:
transform
in interfaceTransformer
-