org.springframework.integration.aggregator
Class ExpressionEvaluatingMessageGroupProcessor
java.lang.Object
org.springframework.integration.aggregator.AbstractAggregatingMessageGroupProcessor
org.springframework.integration.aggregator.ExpressionEvaluatingMessageGroupProcessor
- All Implemented Interfaces:
- BeanFactoryAware, MessageGroupProcessor
public class ExpressionEvaluatingMessageGroupProcessor
- extends AbstractAggregatingMessageGroupProcessor
- implements BeanFactoryAware
A MessageGroupProcessor
implementation that evaluates a SpEL expression. The SpEL context root is the list of
all Messages in the group. The evaluation result can be any Object and is send as new Message payload to the output
channel.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionEvaluatingMessageGroupProcessor
public ExpressionEvaluatingMessageGroupProcessor(java.lang.String expression)
setBeanFactory
public void setBeanFactory(BeanFactory beanFactory)
- Specified by:
setBeanFactory
in interface BeanFactoryAware
setConversionService
public void setConversionService(ConversionService conversionService)
setExpectedType
public void setExpectedType(java.lang.Class<?> expectedType)
aggregatePayloads
protected java.lang.Object aggregatePayloads(MessageGroup group,
java.util.Map<java.lang.String,java.lang.Object> headers)
- Evaluate the expression provided on the unmarked messages (a collection) in the group, and delegate to the
MessagingTemplate
to send downstream.
- Specified by:
aggregatePayloads
in class AbstractAggregatingMessageGroupProcessor