1 /* 2 * $Id: TestResponseAggregator.java 7963 2007-08-21 08:53:15Z 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 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 */ 23 public class TestResponseAggregator extends ResponseCorrelationAggregator 24 { 25 /** 26 * This method is invoked if the shouldAggregate method is called and returns 27 * true. Once this method returns an aggregated message the event group is 28 * removed from the router 29 * 30 * @param events the event group for this request 31 * @return an aggregated message 32 * @throws org.mule.umo.routing.RoutingException if the aggregation fails. in 33 * this scenario the whole event group is removed and passed to the 34 * exception handler for this componenet 35 */ 36 protected UMOMessage aggregateEvents(EventGroup events) throws RoutingException 37 { 38 return null; 39 } 40 }