Coverage Report - org.mule.api.source.MessageSource
 
Classes in this File Line Coverage Branch Coverage Complexity
MessageSource
N/A
N/A
1
 
 1  
 /*
 2  
  * $Id$
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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.api.source;
 12  
 
 13  
 import org.mule.api.MuleException;
 14  
 import org.mule.api.processor.MessageProcessor;
 15  
 
 16  
 /**
 17  
  * Implemented by objects that receives or generates messages which are then
 18  
  * processed by a {@link MessageProcessor}.
 19  
  * 
 20  
  * @since 3.0
 21  
  */
 22  
 public interface MessageSource
 23  
 {
 24  
     /**
 25  
      * Set the MessageProcessor listener on a message source which will be invoked
 26  
      * when a message is received or generated.
 27  
      * 
 28  
      * @param event MuleEvent to be processed
 29  
      * @return optional response MuleEvent
 30  
      * @throws MuleException
 31  
      */
 32  
     void setListener(MessageProcessor listener);
 33  
 }