org.logicalcobwebs.proxool.util
Interface ListenerContainerIF

All Known Implementing Classes:
AbstractListenerContainer

public interface ListenerContainerIF

A container for event listeners. Implementations should cater to only one type of listeners.

Since:
Proxool 0.7
Version:
$Revision: 1.2 $, $Date: 2003/03/03 11:12:02 $
Author:
Christian Nedregaard (christian_nedregaard@email.com), $Author: billhorsman $ (current maintainer)

Method Summary
 void addListener(java.lang.Object listener)
          Add a listener to this container.
 boolean isEmpty()
          Get wether this container is empty or not.
 boolean removeListener(java.lang.Object listener)
          Remove a listener from this container.
 

Method Detail

addListener

public void addListener(java.lang.Object listener)
Add a listener to this container.

Parameters:
listener - the listener to add.

removeListener

public boolean removeListener(java.lang.Object listener)
Remove a listener from this container.

Parameters:
listener - the listener to be removed.
Returns:
wether the listnener was found and removed or not.

isEmpty

public boolean isEmpty()
Get wether this container is empty or not.

Returns:
wether this container is empty or not.