Package org.logicalcobwebs.proxool
Class CompositeProxoolListener
- java.lang.Object
-
- org.logicalcobwebs.proxool.util.AbstractListenerContainer
-
- org.logicalcobwebs.proxool.CompositeProxoolListener
-
- All Implemented Interfaces:
ProxoolListenerIF
,ListenerContainerIF
public class CompositeProxoolListener extends AbstractListenerContainer implements ProxoolListenerIF
AProxoolListenerIF
that keeps a list ofProxoolListenerIF
s and notifies them in a thread safe manner. It also implementsListenerContainerIF
which provides methods foradding
andremoving
listeners.- Since:
- Proxool 0.8
- Version:
- $Revision: 1.6 $, $Date: 2006/01/18 14:40:01 $
- Author:
- Christian Nedregaard (christian_nedregaard@email.com), $Author: billhorsman $ (current maintainer)
-
-
Constructor Summary
Constructors Constructor Description CompositeProxoolListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onRegistration(ConnectionPoolDefinitionIF connectionPoolDefinition, java.util.Properties completeInfo)
Notify that a new connection pool has been registered.void
onShutdown(java.lang.String alias)
Notify that a connection pool will be shutdown.-
Methods inherited from class org.logicalcobwebs.proxool.util.AbstractListenerContainer
addListener, getListeners, isEmpty, removeListener
-
-
-
-
Method Detail
-
onRegistration
public void onRegistration(ConnectionPoolDefinitionIF connectionPoolDefinition, java.util.Properties completeInfo)
Description copied from interface:ProxoolListenerIF
Notify that a new connection pool has been registered. Gets called *after* the registered.- Specified by:
onRegistration
in interfaceProxoolListenerIF
- Parameters:
connectionPoolDefinition
- the new definition.completeInfo
- the properties that could be used to create this definition.- See Also:
ProxoolListenerIF.onRegistration(ConnectionPoolDefinitionIF, Properties)
-
onShutdown
public void onShutdown(java.lang.String alias)
Description copied from interface:ProxoolListenerIF
Notify that a connection pool will be shutdown. Gets called just *before* the pool is shut down.- Specified by:
onShutdown
in interfaceProxoolListenerIF
- Parameters:
alias
- the alias of the pool about to be shut down.- See Also:
ProxoolListenerIF.onShutdown(String)
-
-