org.logicalcobwebs.proxool.util
Interface ListenerContainerIF

All Known Implementing Classes:
AbstractListenerContainer, CompositeConfigurationListener, CompositeConnectionListener, CompositeProxoolListener, CompositeStateListener, CompositeStatisticsListener, CompositeTestListener

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

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

Parameters:
listener - the listener to add.

removeListener

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

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

Returns:
wether this container is empty or not.