1 /* 2 * $Id: PassThroughComponent.java 11621 2008-04-22 03:01:54Z dfeist $ 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.component.simple; 12 13 import org.mule.api.MuleEvent; 14 import org.mule.api.MuleMessage; 15 import org.mule.component.AbstractComponent; 16 17 /** 18 * <code>PassThroughComponent</code> will simply return the payload back as the 19 * result. This typically you don't need to specify this, since it is used by 20 * default. 21 */ 22 public class PassThroughComponent extends AbstractComponent 23 { 24 25 // @Override 26 protected MuleMessage doOnCall(MuleEvent event) throws Exception 27 { 28 event.transformMessage(); 29 return event.getMessage(); 30 } 31 32 }