Coverage Report - org.apache.commons.messenger.MessengerListenerSupport
 
Classes in this File Line Coverage Branch Coverage Complexity
MessengerListenerSupport
0%
0/4
N/A
1
 
 1  
 /*
 2  
  * Copyright (C) The Apache Software Foundation. All rights reserved.
 3  
  *
 4  
  * This software is published under the terms of the Apache Software License
 5  
  * version 1.1, a copy of which has been included with this distribution in
 6  
  * the LICENSE file.
 7  
  * 
 8  
  * $Id: MessengerListenerSupport.java 155459 2005-02-26 13:24:44Z dirkv $
 9  
  */
 10  
 package org.apache.commons.messenger;
 11  
 
 12  
 
 13  
 /** 
 14  
  * <p><code>MessengerListenerSupport</code> is an abstract base
 15  
  * class for a MessengerListener objects which is useful for
 16  
  * implementation inheritence.
 17  
  * This object has a messenger property which can be used to send replies
 18  
  * to incoming messages or to send other messages using the same Messenger
 19  
  * (JMS connection).</p>
 20  
  *
 21  
  * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
 22  
  * @version $Revision: 155459 $
 23  
  */
 24  0
 public abstract class MessengerListenerSupport implements MessengerListener {
 25  
 
 26  
     private Messenger messenger;
 27  
     
 28  
     /** 
 29  
      * Called whenever this MessageListener is added to a 
 30  
      * Messenger via the addListener() method to associate
 31  
      * this MessageListener with a Messenger instance..
 32  
      */
 33  
     public void setMessenger(Messenger messenger) {
 34  0
         this.messenger = messenger;
 35  0
     }
 36  
     
 37  
     /** 
 38  
      * Returns the Messenger that this MessageListener is associated with
 39  
      * making it easy to send replies or other messages using
 40  
      * the same Messenger instance that this object is listening to.
 41  
      */
 42  
     public Messenger getMessenger() {
 43  0
         return messenger;
 44  
     }
 45  
 }
 46