Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
SimpleCollectionAggregator |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: SimpleCollectionAggregator.java 11567 2008-04-11 13:08:05Z dirk.olmes $ | |
3 | * -------------------------------------------------------------------------------------- | |
4 | * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com | |
5 | * | |
6 | * The software in this package is published under the terms of the CPAL v1.0 | |
7 | * license, a copy of which has been included with this distribution in the | |
8 | * LICENSE.txt file. | |
9 | */ | |
10 | package org.mule.routing.inbound; | |
11 | ||
12 | import org.mule.routing.CollectionCorrelatorCallback; | |
13 | import org.mule.routing.EventCorrelatorCallback; | |
14 | ||
15 | /** | |
16 | * This router will return all aggregated events as a {@link org.mule.api.MuleMessageCollection}. | |
17 | * This allows the service itself to act upon the events rather that the user having to write a cusotm | |
18 | * aggregator. This may feel more natural for some users. | |
19 | */ | |
20 | 0 | public class SimpleCollectionAggregator extends AbstractEventAggregator |
21 | { | |
22 | protected EventCorrelatorCallback getCorrelatorCallback() | |
23 | { | |
24 | 0 | return new CollectionCorrelatorCallback(); |
25 | } | |
26 | } |