Coverage Report - org.mule.model.direct.DirectService
 
Classes in this File Line Coverage Branch Coverage Complexity
DirectService
50%
3/6
N/A
1
 
 1  
 /*
 2  
  * $Id: DirectService.java 12269 2008-07-10 04:19:03Z 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.model.direct;
 12  
 
 13  
 import org.mule.api.MuleEvent;
 14  
 import org.mule.api.MuleException;
 15  
 import org.mule.api.MuleMessage;
 16  
 import org.mule.service.AbstractService;
 17  
 
 18  
 import java.util.List;
 19  
 
 20  
 /**
 21  
  * A direct service invokes the service service directly without any threading, even
 22  
  * when the invocation is asynchronous
 23  
  */
 24  
 public class DirectService extends AbstractService
 25  
 {
 26  
     /**
 27  
      * Serial version
 28  
      */
 29  
     private static final long serialVersionUID = -8590955440156945732L;
 30  
 
 31  16
     protected List interceptorList = null;
 32  
 
 33  
     public DirectService()
 34  
     {
 35  16
         super();
 36  16
     }
 37  
 
 38  
     protected MuleMessage doSend(MuleEvent event) throws MuleException
 39  
     {
 40  0
         return component.onCall(event);
 41  
     }
 42  
 
 43  
     protected void doDispatch(MuleEvent event) throws MuleException
 44  
     {
 45  0
         component.onCall(event);
 46  0
     }
 47  
 
 48  
 }