org.logicalcobwebs.proxool.util

Interface ListenerContainerIF

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

public interface ListenerContainerIF

A container for event listeners. Implementations should cater to only one type of listeners.
Version:
$Revision: 1.2 $, $Date: 2003/03/03 11:12:02 $
Authors:
Christian Nedregaard (christian_nedregaard@email.com)
$Author: billhorsman $ (current maintainer)
Since:
Proxool 0.7

Method Summary

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

Method Details

addListener

public void addListener(Object listener)
Add a listener to this container.
Parameters:
listener - the listener to add.

isEmpty

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

removeListener

public boolean removeListener(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.