public class FilterFactoryBean extends AbstractStandardMessageHandlerFactoryBean
logger
Constructor and Description |
---|
FilterFactoryBean() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canBeUsedDirect(AbstractMessageProducingHandler handler)
MessageFilter is an ARPMH.
|
protected void |
checkForIllegalTarget(java.lang.Object targetObject,
java.lang.String targetMethodName) |
protected org.springframework.messaging.MessageHandler |
createExpressionEvaluatingHandler(org.springframework.expression.Expression expression) |
protected MessageFilter |
createFilter(MessageSelector selector) |
protected org.springframework.messaging.MessageHandler |
createMethodInvokingHandler(java.lang.Object targetObject,
java.lang.String targetMethodName)
Subclasses must implement this method to create the MessageHandler.
|
protected java.lang.Class<? extends org.springframework.messaging.MessageHandler> |
getPreCreationHandlerType()
Subclasses can override this to return a more specific type before handler creation.
|
protected void |
postProcessFilter(MessageFilter filter) |
protected void |
postProcessReplyProducer(AbstractMessageProducingHandler handler) |
void |
setDiscardChannel(org.springframework.messaging.MessageChannel discardChannel) |
void |
setDiscardWithinAdvice(boolean discardWithinAdvice) |
void |
setThrowExceptionOnRejection(java.lang.Boolean throwExceptionOnRejection) |
createDefaultHandler, createHandler, createMessageProcessingHandler, destroy, extractTypeIfPossible, getSendTimeout, methodIsHandleMessageOrEmpty, setExpression, setExpressionString, setRequiresReply, setSendTimeout, setTargetMethodName, setTargetObject
createHandlerInternal, getBeanFactory, getObject, getObjectType, isSingleton, setAdviceChain, setApplicationContext, setApplicationEventPublisher, setAsync, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setOrder, setOutputChannel
public void setDiscardChannel(org.springframework.messaging.MessageChannel discardChannel)
public void setThrowExceptionOnRejection(java.lang.Boolean throwExceptionOnRejection)
public void setDiscardWithinAdvice(boolean discardWithinAdvice)
protected org.springframework.messaging.MessageHandler createMethodInvokingHandler(java.lang.Object targetObject, java.lang.String targetMethodName)
AbstractStandardMessageHandlerFactoryBean
createMethodInvokingHandler
in class AbstractStandardMessageHandlerFactoryBean
targetObject
- the object to use for method invocation.targetMethodName
- the method name of the target object to invoke.MessageHandler
implementation.protected void checkForIllegalTarget(java.lang.Object targetObject, java.lang.String targetMethodName)
checkForIllegalTarget
in class AbstractStandardMessageHandlerFactoryBean
protected org.springframework.messaging.MessageHandler createExpressionEvaluatingHandler(org.springframework.expression.Expression expression)
createExpressionEvaluatingHandler
in class AbstractStandardMessageHandlerFactoryBean
protected MessageFilter createFilter(MessageSelector selector)
protected void postProcessFilter(MessageFilter filter)
protected void postProcessReplyProducer(AbstractMessageProducingHandler handler)
postProcessReplyProducer
in class AbstractStandardMessageHandlerFactoryBean
protected boolean canBeUsedDirect(AbstractMessageProducingHandler handler)
canBeUsedDirect
in class AbstractStandardMessageHandlerFactoryBean
protected java.lang.Class<? extends org.springframework.messaging.MessageHandler> getPreCreationHandlerType()
AbstractSimpleMessageHandlerFactoryBean
getPreCreationHandlerType
in class AbstractSimpleMessageHandlerFactoryBean<org.springframework.messaging.MessageHandler>