1 /* 2 * $Id: PassThroughComponent.java 8333 2007-09-11 15:00:19Z 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 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.components.simple; 12 13 import org.mule.umo.UMOEventContext; 14 import org.mule.umo.lifecycle.Callable; 15 16 /** 17 * <code>PassThroughComponent</code> will simply return the payload back as the result. 18 * Normally {@link BridgeComponent} should be used since it removes the slight overhead of 19 * invoking the service object by never actually causing an invocation; however, 20 * interceptors will only be invoked using this class. 21 */ 22 public class PassThroughComponent implements Callable 23 { 24 25 public Object onCall(UMOEventContext context) throws Exception 26 { 27 return context.getTransformedMessage(); 28 } 29 30 }