org.logicalcobwebs.proxool.util
接口 ListenerContainerIF

所有已知实现类:
AbstractListenerContainer, CompositeConfigurationListener, CompositeConnectionListener, CompositeProxoolListener, CompositeStateListener, CompositeStatisticsListener

public interface ListenerContainerIF

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

从以下版本开始:
Proxool 0.7
版本:
$Revision: 1.2 $, $Date: 2003/03/03 11:12:02 $
作者:
Christian Nedregaard (christian_nedregaard@email.com), $Author: billhorsman $ (current maintainer)

方法摘要
 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.
 

方法详细信息

addListener

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

参数:
listener - the listener to add.

removeListener

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

参数:
listener - the listener to be removed.
返回:
wether the listnener was found and removed or not.

isEmpty

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

返回:
wether this container is empty or not.


Copyright © 2014. All rights reserved.