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 boolean
accept(Message<?> message)
boolean
isRunning()
void
setBeanFactory(BeanFactory beanFactory)
void
setConversionService(ConversionService conversionService)
void
start()
void
stop()
-
Constructor Details
-
Method Details
-
setConversionService
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-
accept
- Specified by:
accept
in interfaceGenericSelector<Message<?>>
- Specified by:
accept
in interfaceMessageSelector
-
start
public void start()- Specified by:
start
in interfaceLifecycle
- Specified by:
start
in interfaceManageableLifecycle
-
stop
public void stop()- Specified by:
stop
in interfaceLifecycle
- Specified by:
stop
in interfaceManageableLifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceLifecycle
- Specified by:
isRunning
in interfaceManageableLifecycle
-