Class AbstractMessageProcessingTransformer
java.lang.Object
org.springframework.integration.transformer.AbstractMessageProcessingTransformer
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,Lifecycle
,ManageableLifecycle
,GenericTransformer<Message<?>,Message<?>>
,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
Constructors Modifier Constructor Description protected
AbstractMessageProcessingTransformer(MessageProcessor<?> messageProcessor)
-
Method Summary
Modifier and Type Method Description protected MessageBuilderFactory
getMessageBuilderFactory()
boolean
isRunning()
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()
Message<?>
transform(Message<?> message)
-
Constructor Details
-
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
-