org.springframework.integration.aggregator
Class ExpressionEvaluatingMessageListProcessor

java.lang.Object
  extended by org.springframework.integration.util.AbstractExpressionEvaluator
      extended by org.springframework.integration.aggregator.ExpressionEvaluatingMessageListProcessor
All Implemented Interfaces:
BeanFactoryAware, MessageListProcessor
Direct Known Subclasses:
ExpressionEvaluatingReleaseStrategy

public class ExpressionEvaluatingMessageListProcessor
extends AbstractExpressionEvaluator
implements MessageListProcessor

A base class for aggregators that evaluates a SpEL expression with the message list as the root object within the evaluation context.

Since:
2.0

Constructor Summary
ExpressionEvaluatingMessageListProcessor(java.lang.String expression)
           
 
Method Summary
 java.lang.Object process(java.util.Collection<? extends Message<?>> messages)
          Processes the Message by evaluating the expression with that Message as the root object.
 void setExpectedType(java.lang.Class<?> expectedType)
          Set the result type expected from evaluation of the expression.
 
Methods inherited from class org.springframework.integration.util.AbstractExpressionEvaluator
evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getEvaluationContext, setBeanFactory, setConversionService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionEvaluatingMessageListProcessor

public ExpressionEvaluatingMessageListProcessor(java.lang.String expression)
Method Detail

setExpectedType

public void setExpectedType(java.lang.Class<?> expectedType)
Set the result type expected from evaluation of the expression.


process

public java.lang.Object process(java.util.Collection<? extends Message<?>> messages)
Processes the Message by evaluating the expression with that Message as the root object. The expression evaluation result Object will be returned.

Specified by:
process in interface MessageListProcessor