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
ConstructorsModifierConstructorDescriptionprotected
AbstractMessageProcessingTransformer
(MessageProcessor<?> messageProcessor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected void
onInit()
Subclasses may implement this for initialization logic.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
<?> 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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.integration.support.context.NamedComponent
getComponentType
-
Constructor Details
-
AbstractMessageProcessingTransformer
-
-
Method Details
-
onInit
protected void onInit()Description copied from class:IntegrationObjectSupport
Subclasses may implement this for initialization logic.- Overrides:
onInit
in classIntegrationObjectSupport
-
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 do not propagate from the inbound message.- Since:
- 5.1
-
transform
- Specified by:
transform
in interfaceGenericTransformer<Message<?>, Message<?>>
- Specified by:
transform
in interfaceTransformer
-