1 /* 2 * $Id: Receiveable.java 20321 2010-11-24 15:21:24Z dfeist $ 3 * -------------------------------------------------------------------------------------- 4 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.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.tck.functional; 11 12 /** 13 * Interface only to be used by the {@link org.mule.tck.functional.FunctionalTestComponent}. 14 */ 15 public interface Receiveable 16 { 17 /** 18 * This method is used by some WebServices tests where you don' want to be introducing the {@link org.mule.api.MuleEventContext} as 19 * a complex type. 20 * 21 * @param data the event data received 22 * @return the processed message 23 * @throws Exception 24 */ 25 public Object onReceive(Object data) throws Exception; 26 }