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
Constructors Constructor Description ExpressionEvaluatingMessageGroupProcessor(String expression) -
Method Summary
Modifier and Type Method Description protected 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.AbstractAggregatingMessageGroupProcessor
aggregateHeaders, getHeadersFunction, getMessageBuilderFactory, processMessageGroup, setHeadersFunction
-
Constructor Details
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Overrides:
setBeanFactoryin classAbstractAggregatingMessageGroupProcessor
-
setConversionService
-
setExpectedType
-
aggregatePayloads
Evaluate the expression provided on the messages (a collection) in the group, and delegate to theMessagingTemplateto send downstream.- Specified by:
aggregatePayloadsin classAbstractAggregatingMessageGroupProcessor
-