org.abraracourcix.alipes.pipes
Class Multiplexor

java.lang.Object
  extended byorg.abraracourcix.alipes.pipes.Multiplexor
All Implemented Interfaces:
Listener, Monitor

public class Multiplexor
extends java.lang.Object
implements Monitor, Listener

Multiplexes an event to several listeners

Author:
jdt

Constructor Summary
Multiplexor()
           
 
Method Summary
 void addListener(Listener listener)
          Add a new one
 void clear()
          Clear the list of listeners
 void eventOccurred(Event event, java.lang.Object resource)
          something happened - pass the word on
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Multiplexor

public Multiplexor()
Method Detail

addListener

public final void addListener(Listener listener)
Add a new one

Parameters:
listener - Listener to add

eventOccurred

public final void eventOccurred(Event event,
                                java.lang.Object resource)
                         throws MultiplexorException
something happened - pass the word on

Specified by:
eventOccurred in interface Listener
Parameters:
event - the event
resource - happened to this resouce
Throws:
MultiplexorException - if one or more of the underlying listeners throws an exception, but processing continues across all the listeners even it does
See Also:
Listener.eventOccurred(org.abraracourcix.alipes.common.Event, java.lang.Object)

clear

public void clear()
Clear the list of listeners



Copyright © 2004-2005 Abraracourcix. All Rights Reserved.