Coverage Report - org.mule.components.simple.PassThroughComponent
 
Classes in this File Line Coverage Branch Coverage Complexity
PassThroughComponent
0%
0/2
N/A
1
 
 1  
 /*
 2  
  * $Id: PassThroughComponent.java 7976 2007-08-21 14:26:13Z 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.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  
  * @deprecated The {@link BridgeComponent} should be used since it removes the slight
 21  
  *             overhead of invoking the service object by never actually causing an
 22  
  *             invocation.
 23  
  */
 24  0
 public class PassThroughComponent implements Callable
 25  
 {
 26  
 
 27  
     public Object onCall(UMOEventContext context) throws Exception
 28  
     {
 29  0
         return context.getTransformedMessage();
 30  
     }
 31  
 
 32  
 }