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
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
loggerFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanMessageFilter 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>Subclasses can override this to return a more specific type before handler creation.protected voidpostProcessFilter(MessageFilter filter) protected voidvoidsetDiscardChannel(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.
-