public class ExpressionEvaluatingMessageGroupProcessor extends AbstractAggregatingMessageGroupProcessor implements BeanFactoryAware
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.Constructor and Description |
---|
ExpressionEvaluatingMessageGroupProcessor(String expression) |
Modifier and Type | Method and Description |
---|---|
protected Object |
aggregatePayloads(MessageGroup group,
Map<String,Object> headers)
Evaluate the expression provided on the messages (a collection) in the group, and delegate to the
MessagingTemplate to send downstream. |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setConversionService(ConversionService conversionService) |
void |
setExpectedType(Class<?> expectedType) |
aggregateHeaders, processMessageGroup
public ExpressionEvaluatingMessageGroupProcessor(String expression)
public void setBeanFactory(BeanFactory beanFactory)
setBeanFactory
in interface BeanFactoryAware
setBeanFactory
in class AbstractAggregatingMessageGroupProcessor
public void setConversionService(ConversionService conversionService)
public void setExpectedType(Class<?> expectedType)
protected Object aggregatePayloads(MessageGroup group, Map<String,Object> headers)
MessagingTemplate
to send downstream.aggregatePayloads
in class AbstractAggregatingMessageGroupProcessor