org.springframework.integration.aggregator
Class ExpressionEvaluatingMessageListProcessor
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
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
- Author:
- Dave Syer
Method Summary |
Object |
process(Collection<? extends Message<?>> messages)
Processes the Message by evaluating the expression with that Message as the root object. |
void |
setExpectedType(Class<?> expectedType)
Set the result type expected from evaluation of the expression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionEvaluatingMessageListProcessor
public ExpressionEvaluatingMessageListProcessor(String expression)
setExpectedType
public void setExpectedType(Class<?> expectedType)
- Set the result type expected from evaluation of the expression.
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
Copyright © 2010. All Rights Reserved.