public abstract class AbstractStandardMessageHandlerFactoryBean extends AbstractSimpleMessageHandlerFactoryBean<MessageHandler> implements DisposableBean
logger
OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
AbstractStandardMessageHandlerFactoryBean() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canBeUsedDirect(AbstractMessageProducingHandler handler) |
protected void |
checkForIllegalTarget(Object targetObject,
String targetMethodName) |
protected MessageHandler |
createDefaultHandler() |
protected MessageHandler |
createExpressionEvaluatingHandler(Expression expression) |
protected MessageHandler |
createHandler() |
protected <T> MessageHandler |
createMessageProcessingHandler(MessageProcessor<T> processor) |
protected abstract MessageHandler |
createMethodInvokingHandler(Object targetObject,
String targetMethodName)
Subclasses must implement this method to create the MessageHandler.
|
void |
destroy() |
Long |
getSendTimeout() |
protected boolean |
methodIsHandleMessageOrEmpty(String targetMethodName) |
protected void |
postProcessReplyProducer(AbstractMessageProducingHandler handler) |
void |
setExpression(Expression expression)
Set a SpEL expression to use.
|
void |
setExpressionString(String expressionString)
Set a SpEL expression to use.
|
void |
setRequiresReply(Boolean requiresReply) |
void |
setSendTimeout(Long sendTimeout) |
void |
setTargetMethodName(String targetMethodName)
Set the method name for the message handler.
|
void |
setTargetObject(Object targetObject)
Set the target POJO for the message handler.
|
createHandlerInternal, getBeanFactory, getObject, getObjectType, getPreCreationHandlerType, isSingleton, setAdviceChain, setApplicationContext, setApplicationEventPublisher, setAsync, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setOrder, setOutputChannel, setOutputChannelName
public AbstractStandardMessageHandlerFactoryBean()
public void setTargetObject(Object targetObject)
targetObject
- the target object.public void setTargetMethodName(String targetMethodName)
targetMethodName
- the target method name.public void setExpressionString(String expressionString)
expressionString
- the expression as a String.public void setExpression(Expression expression)
expression
- the expression.public void setRequiresReply(Boolean requiresReply)
public void setSendTimeout(Long sendTimeout)
public Long getSendTimeout()
public void destroy()
destroy
in interface DisposableBean
protected MessageHandler createHandler()
createHandler
in class AbstractSimpleMessageHandlerFactoryBean<MessageHandler>
protected void checkForIllegalTarget(Object targetObject, String targetMethodName)
protected abstract MessageHandler createMethodInvokingHandler(Object targetObject, String targetMethodName)
targetObject
- the object to use for method invocation.targetMethodName
- the method name of the target object to invoke.MessageHandler
implementation.protected MessageHandler createExpressionEvaluatingHandler(Expression expression)
protected <T> MessageHandler createMessageProcessingHandler(MessageProcessor<T> processor)
protected MessageHandler createDefaultHandler()
protected boolean methodIsHandleMessageOrEmpty(String targetMethodName)
protected boolean canBeUsedDirect(AbstractMessageProducingHandler handler)
protected void postProcessReplyProducer(AbstractMessageProducingHandler handler)