net.sf.bus.spi
Interface Dispatcher

All Known Implementing Classes:
AbstractDispatcher

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.

Version:
$Revision: 1.2 $
Author:
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

dispatch

public void dispatch(java.lang.Object message,
                     java.util.Iterator subscribers)
Dispatch the message using the given master list of subscribers
Parameters:
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..