KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > components > simple > PassThroughComponent


1 /*
2  * $Id: PassThroughComponent.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.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
18  * result
19  *
20  * @author <a HREF="mailto:lajos@galatea.com">Lajos Moczar</a>
21  * @version $Revision: 3798 $
22  */

23 public class PassThroughComponent implements Callable
24 {
25     public Object JavaDoc onCall(UMOEventContext context) throws Exception JavaDoc
26     {
27         return context.getTransformedMessage();
28     }
29
30 }
31
Popular Tags