KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > tck > testmodels > mule > TestResponseAggregator


1 /*
2  * $Id: TestResponseAggregator.java 3798 2006-11-04 04:07:14Z aperepel $
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 MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.tck.testmodels.mule;
12
13 import org.mule.routing.inbound.EventGroup;
14 import org.mule.routing.response.ResponseCorrelationAggregator;
15 import org.mule.umo.UMOMessage;
16 import org.mule.umo.routing.RoutingException;
17
18 /**
19  * <code>TestResponseAggregator</code> is a mock response Agrregator object used
20  * for testing configuration
21  *
22  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
23  * @version $Revision: 3798 $
24  */

25 public class TestResponseAggregator extends ResponseCorrelationAggregator
26 {
27     /**
28      * This method is invoked if the shouldAggregate method is called and returns
29      * true. Once this method returns an aggregated message the event group is
30      * removed from the router
31      *
32      * @param events the event group for this request
33      * @return an aggregated message
34      * @throws org.mule.umo.routing.RoutingException if the aggregation fails. in
35      * this scenario the whole event group is removed and passed to the
36      * exception handler for this componenet
37      */

38     protected UMOMessage aggregateEvents(EventGroup events) throws RoutingException
39     {
40         return null;
41     }
42 }
43
Popular Tags