Example usage for org.springframework.integration.aggregator AggregatingMessageHandler AggregatingMessageHandler

List of usage examples for org.springframework.integration.aggregator AggregatingMessageHandler AggregatingMessageHandler

Introduction

In this page you can find the example usage for org.springframework.integration.aggregator AggregatingMessageHandler AggregatingMessageHandler.

Prototype

public AggregatingMessageHandler(MessageGroupProcessor processor, MessageGroupStore store) 

Source Link

Usage

From source file:org.springframework.integration.aggregator.AggregatorTests.java

@Before
public void configureAggregator() {
    this.aggregator = new AggregatingMessageHandler(new MultiplyingProcessor(), store);
    this.aggregator.setBeanFactory(mock(BeanFactory.class));
    this.aggregator.setApplicationEventPublisher(event -> expiryEvents.add((MessageGroupExpiredEvent) event));
    this.aggregator.setBeanName("testAggregator");
    this.aggregator.afterPropertiesSet();
    expiryEvents.clear();// w ww  .  ja  v  a2 s  . c  o m
}