Class AbstractMessageProcessingSelector
java.lang.Object
org.springframework.integration.filter.AbstractMessageProcessingSelector
- All Implemented Interfaces:
Aware,BeanFactoryAware,Lifecycle,GenericSelector<Message<?>>,MessageSelector,ManageableLifecycle
- Direct Known Subclasses:
ExpressionEvaluatingSelector,MethodInvokingSelector
public abstract class AbstractMessageProcessingSelector extends Object implements MessageSelector, BeanFactoryAware, ManageableLifecycle
A base class for
MessageSelector implementations that delegate to
a MessageProcessor.- Author:
- Mark Fisher, Artem Bilan
-
Constructor Summary
Constructors Constructor Description AbstractMessageProcessingSelector(MessageProcessor<Boolean> messageProcessor) -
Method Summary
Modifier and Type Method Description booleanaccept(Message<?> message)booleanisRunning()voidsetBeanFactory(BeanFactory beanFactory)voidsetConversionService(ConversionService conversionService)voidstart()voidstop()
-
Constructor Details
-
Method Details
-
setConversionService
-
setBeanFactory
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Throws:
BeansException
-
accept
- Specified by:
acceptin interfaceGenericSelector<Message<?>>- Specified by:
acceptin interfaceMessageSelector
-
start
public void start()- Specified by:
startin interfaceLifecycle- Specified by:
startin interfaceManageableLifecycle
-
stop
public void stop()- Specified by:
stopin interfaceLifecycle- Specified by:
stopin interfaceManageableLifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceLifecycle- Specified by:
isRunningin interfaceManageableLifecycle
-