Class FilterFactoryBean
java.lang.Object
org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBean<MessageHandler>
org.springframework.integration.config.AbstractStandardMessageHandlerFactoryBean
org.springframework.integration.config.FilterFactoryBean
- All Implemented Interfaces:
Aware,BeanFactoryAware,BeanNameAware,DisposableBean,FactoryBean<MessageHandler>,ApplicationContextAware,ApplicationEventPublisherAware
public class FilterFactoryBean extends AbstractStandardMessageHandlerFactoryBean
Factory bean for creating a Message Filter.
- Since:
- 2.0
- Author:
- Mark Fisher, Gary Russell, David Liu, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBean
logger -
Constructor Summary
Constructors Constructor Description FilterFactoryBean() -
Method Summary
Modifier and Type Method Description protected booleancanBeUsedDirect(AbstractMessageProducingHandler handler)MessageFilter is an ARPMH.protected voidcheckForIllegalTarget(Object targetObject, String targetMethodName)protected MessageHandlercreateExpressionEvaluatingHandler(Expression expression)protected MessageFiltercreateFilter(MessageSelector selector)protected MessageHandlercreateMethodInvokingHandler(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 voidpostProcessFilter(MessageFilter filter)protected voidpostProcessReplyProducer(AbstractMessageProducingHandler handler)voidsetDiscardChannel(MessageChannel discardChannel)voidsetDiscardWithinAdvice(boolean discardWithinAdvice)voidsetThrowExceptionOnRejection(Boolean throwExceptionOnRejection)Methods inherited from class org.springframework.integration.config.AbstractStandardMessageHandlerFactoryBean
createDefaultHandler, createHandler, createMessageProcessingHandler, destroy, getSendTimeout, methodIsHandleMessageOrEmpty, setExpression, setExpressionString, setRequiresReply, setSendTimeout, setTargetMethodName, setTargetObjectMethods 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
-
FilterFactoryBean
public FilterFactoryBean()
-
-
Method Details
-
setDiscardChannel
-
setThrowExceptionOnRejection
-
setDiscardWithinAdvice
public void setDiscardWithinAdvice(boolean discardWithinAdvice) -
createMethodInvokingHandler
Description copied from class:AbstractStandardMessageHandlerFactoryBeanSubclasses must implement this method to create the MessageHandler.- Specified by:
createMethodInvokingHandlerin classAbstractStandardMessageHandlerFactoryBean- Parameters:
targetObject- the object to use for method invocation.targetMethodName- the method name of the target object to invoke.- Returns:
- the method invoking
MessageHandlerimplementation.
-
checkForIllegalTarget
- Overrides:
checkForIllegalTargetin classAbstractStandardMessageHandlerFactoryBean
-
createExpressionEvaluatingHandler
- Overrides:
createExpressionEvaluatingHandlerin classAbstractStandardMessageHandlerFactoryBean
-
createFilter
-
postProcessFilter
-
postProcessReplyProducer
- Overrides:
postProcessReplyProducerin classAbstractStandardMessageHandlerFactoryBean
-
canBeUsedDirect
MessageFilter is an ARPMH. If a non-MessageFilter ARPMH is also a MessageSelector, MesageSelector wins and gets wrapped in a MessageFilter.- Overrides:
canBeUsedDirectin classAbstractStandardMessageHandlerFactoryBean
-
getPreCreationHandlerType
Description copied from class:AbstractSimpleMessageHandlerFactoryBeanSubclasses can override this to return a more specific type before handler creation. After handler creation, the actual type is used.- Overrides:
getPreCreationHandlerTypein classAbstractSimpleMessageHandlerFactoryBean<MessageHandler>- Returns:
- the type.
-