Interface Dispatcher

All Known Implementing Classes:

public interface Dispatcher

A dispatcher is responsible for the distribution of a message to a list of subscribers. The subscriber list should be filtered based on the messagetype the subscriber wants to listen for, as well as with the optional filter that may have been provided at subscription time.

$Revision: 1.2 $
James Higginbotham

Method Summary
 void dispatch(java.lang.Object message, java.util.Iterator subscribers)
          Dispatch the message using the given master list of subscribers

Method Detail


public void dispatch(java.lang.Object message,
                     java.util.Iterator subscribers)
Dispatch the message using the given master list of subscribers
message - the message Object
subscribers - an Iterator pointing to the master list of subscribers, that must be filtered by the dispatcher.

This code may be freely distributed and modified under the terms of the GNU Lesser General Public Licence..