Class DelegatingMessageGroupProcessor

All Implemented Interfaces:
Aware, BeanFactoryAware, Lifecycle, MessageGroupProcessor, ManageableLifecycle

public class DelegatingMessageGroupProcessor
extends Object
implements MessageGroupProcessor, BeanFactoryAware, ManageableLifecycle
The MessageGroupProcessor implementation with delegation to the provided delegate and optional aggregation for headers.

Unlike AbstractAggregatingMessageGroupProcessor this processor checks a result of the delegate call and aggregates headers into the output only if the result is not a Message or AbstractIntegrationMessageBuilder.

This processor is used internally for wrapping provided non-standard MessageGroupProcessor when a aggregate headers Function is provided. For POJO method invoking or SpEL expression evaluation it is recommended to use an AbstractAggregatingMessageGroupProcessor implementations.

Artem Bilan