Class TransformerFactoryBean
java.lang.Object
org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBean<MessageHandler>
org.springframework.integration.config.AbstractStandardMessageHandlerFactoryBean
org.springframework.integration.config.TransformerFactoryBean
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,BeanNameAware
,DisposableBean
,FactoryBean<MessageHandler>
,ApplicationContextAware
,ApplicationEventPublisherAware
Factory bean for creating a Message Transformer.
- Author:
- Mark Fisher, Gary Russell, David Liu, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBean
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Always returns true - anyAbstractMessageProducingHandler
can be used directly.protected MessageHandler
createExpressionEvaluatingHandler
(Expression expression) protected MessageTransformingHandler
createHandler
(Transformer transformer) protected MessageHandler
createMethodInvokingHandler
(Object targetObject, String targetMethodName) Subclasses must implement this method to create the MessageHandler.protected Class<? extends MessageHandler>
Subclasses can override this to return a more specific type before handler creation.Methods inherited from class org.springframework.integration.config.AbstractStandardMessageHandlerFactoryBean
checkForIllegalTarget, createDefaultHandler, createHandler, createMessageProcessingHandler, destroy, getSendTimeout, methodIsHandleMessageOrEmpty, postProcessReplyProducer, setExpression, setExpressionString, setRequiresReply, setSendTimeout, setTargetMethodName, setTargetObject
Methods inherited from class org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBean
createHandlerInternal, getBeanFactory, getObject, getObjectType, isSingleton, setAdviceChain, setApplicationContext, setApplicationEventPublisher, setAsync, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setOrder, setOutputChannel, setOutputChannelName
-
Constructor Details
-
TransformerFactoryBean
public TransformerFactoryBean()
-
-
Method Details
-
createMethodInvokingHandler
Description copied from class:AbstractStandardMessageHandlerFactoryBean
Subclasses must implement this method to create the MessageHandler.- Specified by:
createMethodInvokingHandler
in classAbstractStandardMessageHandlerFactoryBean
- Parameters:
targetObject
- the object to use for method invocation.targetMethodName
- the method name of the target object to invoke.- Returns:
- the method invoking
MessageHandler
implementation.
-
createExpressionEvaluatingHandler
- Overrides:
createExpressionEvaluatingHandler
in classAbstractStandardMessageHandlerFactoryBean
-
createHandler
-
canBeUsedDirect
Always returns true - anyAbstractMessageProducingHandler
can be used directly.- Overrides:
canBeUsedDirect
in classAbstractStandardMessageHandlerFactoryBean
-
getPreCreationHandlerType
Description copied from class:AbstractSimpleMessageHandlerFactoryBean
Subclasses can override this to return a more specific type before handler creation. After handler creation, the actual type is used.- Overrides:
getPreCreationHandlerType
in classAbstractSimpleMessageHandlerFactoryBean<MessageHandler>
- Returns:
- the type.
-