org.springframework.integration.filter
Class ExpressionEvaluatingSelector
java.lang.Object
org.springframework.integration.filter.ExpressionEvaluatingSelector
- All Implemented Interfaces:
- BeanFactoryAware, MessageSelector
public class ExpressionEvaluatingSelector
- extends java.lang.Object
A MessageSelector
implementation that evaluates a SpEL expression.
The evaluation result of the expression must be a boolean value.
- Since:
- 2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionEvaluatingSelector
public ExpressionEvaluatingSelector(java.lang.String expressionString)
ExpressionEvaluatingSelector
public ExpressionEvaluatingSelector(Expression expression)
setConversionService
protected void setConversionService(ConversionService conversionService)
setBeanFactory
public void setBeanFactory(BeanFactory beanFactory)
throws BeansException
- Specified by:
setBeanFactory
in interface BeanFactoryAware
- Throws:
BeansException
accept
public final boolean accept(Message<?> message)
- Specified by:
accept
in interface MessageSelector