Class ExpressionEvaluatingMessageGroupProcessor
java.lang.Object
org.springframework.integration.aggregator.AbstractAggregatingMessageGroupProcessor
org.springframework.integration.aggregator.ExpressionEvaluatingMessageGroupProcessor
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- MessageGroupProcessor
public class ExpressionEvaluatingMessageGroupProcessor
extends AbstractAggregatingMessageGroupProcessor
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.- Author:
- Alex Peters, Dave Syer, Gary Russell
- 
Field SummaryFields inherited from class org.springframework.integration.aggregator.AbstractAggregatingMessageGroupProcessorlogger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected ObjectaggregatePayloads(MessageGroup group, Map<String, Object> headers) Evaluate the expression provided on the messages (a collection) in the group, and delegate to theMessagingTemplateto send downstream.voidsetBeanFactory(BeanFactory beanFactory) voidsetConversionService(ConversionService conversionService) voidsetExpectedType(Class<?> expectedType) Methods inherited from class org.springframework.integration.aggregator.AbstractAggregatingMessageGroupProcessoraggregateHeaders, getHeadersFunction, getMessageBuilderFactory, processMessageGroup, setHeadersFunction
- 
Constructor Details- 
ExpressionEvaluatingMessageGroupProcessor
 
- 
- 
Method Details- 
setBeanFactory- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
- Overrides:
- setBeanFactoryin class- AbstractAggregatingMessageGroupProcessor
 
- 
setConversionService
- 
setExpectedType
- 
aggregatePayloadsEvaluate the expression provided on the messages (a collection) in the group, and delegate to theMessagingTemplateto send downstream.- Specified by:
- aggregatePayloadsin class- AbstractAggregatingMessageGroupProcessor
 
 
-