Package org.logicalcobwebs.proxool.util
Interface ListenerContainerIF
-
- All Known Implementing Classes:
AbstractListenerContainer,CompositeConfigurationListener,CompositeConnectionListener,CompositeProxoolListener,CompositeStateListener,CompositeStatisticsListener
public interface ListenerContainerIFA 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(java.lang.Object listener)Add a listener to this container.booleanisEmpty()Get wether this container is empty or not.booleanremoveListener(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.
-
-