org.blojsom.event
Interface BlojsomEventBroadcaster

All Known Implementing Classes:
SimpleBlojsomEventBroadcaster

public interface BlojsomEventBroadcaster

BlojsomEventBroadcaster

Since:
blojsom 2.18
Version:
$Id: BlojsomEventBroadcaster.java,v 1.5 2006/01/04 16:59:54 czarneckid Exp $
Author:
David Czarnecki

Method Summary
 void addListener(BlojsomListener listener)
          Add a event to this event broadcaster
 void addListener(BlojsomListener listener, BlojsomFilter filter)
          Add a event to this event broadcaster.
 void broadcastEvent(BlojsomEvent event)
          Broadcast an event to all listeners
 void processEvent(BlojsomEvent event)
          Process an event with all listeners
 void removeListener(BlojsomListener listener)
          Remove a event from this event broadcaster
 

Method Detail

addListener

public void addListener(BlojsomListener listener)
Add a event to this event broadcaster

Parameters:
listener - BlojsomListener

addListener

public void addListener(BlojsomListener listener,
                        BlojsomFilter filter)
Add a event to this event broadcaster. Events are filtered using the BlojsomFilter instance passed to this method.

Parameters:
listener - BlojsomListener
filter - BlojsomFilter used to filter events

removeListener

public void removeListener(BlojsomListener listener)
Remove a event from this event broadcaster

Parameters:
listener - BlojsomListener

broadcastEvent

public void broadcastEvent(BlojsomEvent event)
Broadcast an event to all listeners

Parameters:
event - BlojsomEvent to be broadcast to all listeners

processEvent

public void processEvent(BlojsomEvent event)
Process an event with all listeners

Parameters:
event - BlojsomEvent to be processed by all listeners
Since:
blojsom 2.24