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 Summary
Fields inherited from class org.springframework.integration.aggregator.AbstractAggregatingMessageGroupProcessor
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
aggregatePayloads
(MessageGroup group, Map<String, Object> headers) Evaluate the expression provided on the messages (a collection) in the group, and delegate to theMessagingTemplate
to send downstream.void
setBeanFactory
(BeanFactory beanFactory) void
setConversionService
(ConversionService conversionService) void
setExpectedType
(Class<?> expectedType) Methods inherited from class org.springframework.integration.aggregator.AbstractAggregatingMessageGroupProcessor
aggregateHeaders, getHeadersFunction, getMessageBuilderFactory, processMessageGroup, setHeadersFunction
-
Constructor Details
-
ExpressionEvaluatingMessageGroupProcessor
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Overrides:
setBeanFactory
in classAbstractAggregatingMessageGroupProcessor
-
setConversionService
-
setExpectedType
-
aggregatePayloads
Evaluate the expression provided on the messages (a collection) in the group, and delegate to theMessagingTemplate
to send downstream.- Specified by:
aggregatePayloads
in classAbstractAggregatingMessageGroupProcessor
-