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(Object targetObject,
String targetMethodName) |
protected MessageHandler |
createExpressionEvaluatingHandler(Expression expression) |
protected MessageFilter |
createFilter(MessageSelector selector) |
protected MessageHandler |
createMethodInvokingHandler(Object targetObject,
String targetMethodName)
Subclasses must implement this method to create the MessageHandler.
|
protected Class<? extends 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(MessageChannel discardChannel) |
void |
setDiscardWithinAdvice(boolean discardWithinAdvice) |
void |
setThrowExceptionOnRejection(Boolean throwExceptionOnRejection) |
createDefaultHandler, createHandler, createMessageProcessingHandler, destroy, getSendTimeout, methodIsHandleMessageOrEmpty, setExpression, setExpressionString, setRequiresReply, setSendTimeout, setTargetMethodName, setTargetObjectcreateHandlerInternal, getBeanFactory, getObject, getObjectType, isSingleton, setAdviceChain, setApplicationContext, setApplicationEventPublisher, setAsync, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setOrder, setOutputChannel, setOutputChannelNamepublic void setDiscardChannel(MessageChannel discardChannel)
public void setThrowExceptionOnRejection(Boolean throwExceptionOnRejection)
public void setDiscardWithinAdvice(boolean discardWithinAdvice)
protected MessageHandler createMethodInvokingHandler(Object targetObject, String targetMethodName)
AbstractStandardMessageHandlerFactoryBeancreateMethodInvokingHandler in class AbstractStandardMessageHandlerFactoryBeantargetObject - the object to use for method invocation.targetMethodName - the method name of the target object to invoke.MessageHandler implementation.protected void checkForIllegalTarget(Object targetObject, String targetMethodName)
checkForIllegalTarget in class AbstractStandardMessageHandlerFactoryBeanprotected MessageHandler createExpressionEvaluatingHandler(Expression expression)
createExpressionEvaluatingHandler in class AbstractStandardMessageHandlerFactoryBeanprotected MessageFilter createFilter(MessageSelector selector)
protected void postProcessFilter(MessageFilter filter)
protected void postProcessReplyProducer(AbstractMessageProducingHandler handler)
postProcessReplyProducer in class AbstractStandardMessageHandlerFactoryBeanprotected boolean canBeUsedDirect(AbstractMessageProducingHandler handler)
canBeUsedDirect in class AbstractStandardMessageHandlerFactoryBeanprotected Class<? extends MessageHandler> getPreCreationHandlerType()
AbstractSimpleMessageHandlerFactoryBeangetPreCreationHandlerType in class AbstractSimpleMessageHandlerFactoryBean<MessageHandler>