org.apache.commons.messenger
Class MessengerListenerSupport

java.lang.Object
  extended by org.apache.commons.messenger.MessengerListenerSupport
All Implemented Interfaces:
javax.jms.MessageListener, MessengerListener

public abstract class MessengerListenerSupport
extends Object
implements MessengerListener

MessengerListenerSupport is an abstract base class for a MessengerListener objects which is useful for implementation inheritence. This object has a messenger property which can be used to send replies to incoming messages or to send other messages using the same Messenger (JMS connection).

Version:
$Revision: 155459 $
Author:
James Strachan

Constructor Summary
MessengerListenerSupport()
           
 
Method Summary
 Messenger getMessenger()
          Returns the Messenger that this MessageListener is associated with making it easy to send replies or other messages using the same Messenger instance that this object is listening to.
 void setMessenger(Messenger messenger)
          Called whenever this MessageListener is added to a Messenger via the addListener() method to associate this MessageListener with a Messenger instance..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jms.MessageListener
onMessage
 

Constructor Detail

MessengerListenerSupport

public MessengerListenerSupport()
Method Detail

setMessenger

public void setMessenger(Messenger messenger)
Called whenever this MessageListener is added to a Messenger via the addListener() method to associate this MessageListener with a Messenger instance..

Specified by:
setMessenger in interface MessengerListener

getMessenger

public Messenger getMessenger()
Returns the Messenger that this MessageListener is associated with making it easy to send replies or other messages using the same Messenger instance that this object is listening to.



Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.