org.apache.beehive.controls.runtime.bean
Class UnicastEventNotifier

Object
  extended by UnicastEventNotifier
All Implemented Interfaces:
Serializable

public class UnicastEventNotifier
extends Object
implements Serializable

The UnicastEventNotifier class provides basic callback listener management and event delivery services for unicast EventSets on ControlBean instances.

See Also:
Serialized Form

Constructor Summary
UnicastEventNotifier()
           
 
Method Summary
 void addListener(Object listener)
          Adds a new callback event listener for this EventNotifier.
 Object getListener()
          Returns the listener associated with this EventNotifier
 int getListenerCount()
          Returns the number of registered listeners
 void getListeners(Object[] listeners)
          Returns the listener list in array form
 void removeListener(Object listener)
          Remove an existing callback event listener for this EventNotifier
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnicastEventNotifier

public UnicastEventNotifier()
Method Detail

addListener

public void addListener(Object listener)
                 throws TooManyListenersException
Adds a new callback event listener for this EventNotifier. This method will also perform a check to see if there is already a register listener, and throw a java.util.TooManyListenersException if there is already a registered listener.

Throws:
TooManyListenersException

removeListener

public void removeListener(Object listener)
Remove an existing callback event listener for this EventNotifier


getListener

public Object getListener()
Returns the listener associated with this EventNotifier


getListenerCount

public int getListenerCount()
Returns the number of registered listeners


getListeners

public void getListeners(Object[] listeners)
Returns the listener list in array form