Class ExpressionEvaluatingMessageListProcessor

java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.aggregator.ExpressionEvaluatingMessageListProcessor
All Implemented Interfaces:
Aware, BeanFactoryAware, InitializingBean, MessageListProcessor

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
Author:
Dave Syer, Artem Bilan
  • Constructor Details

  • Method Details

    • setExpectedType

      public void setExpectedType(Class<?> expectedType)
      Set the result type expected from evaluation of the expression.
      Parameters:
      expectedType - The expected type.
    • process

      public Object process(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