org.springframework.integration.filter
Class ExpressionEvaluatingSelector

java.lang.Object
  extended by 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

Constructor Summary
ExpressionEvaluatingSelector(Expression expression)
           
ExpressionEvaluatingSelector(java.lang.String expressionString)
           
 
Method Summary
 boolean accept(Message<?> message)
           
 void setBeanFactory(BeanFactory beanFactory)
           
protected  void setConversionService(ConversionService conversionService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionEvaluatingSelector

public ExpressionEvaluatingSelector(java.lang.String expressionString)

ExpressionEvaluatingSelector

public ExpressionEvaluatingSelector(Expression expression)
Method Detail

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