org.logicalcobwebs.proxool
Class CompositeProxoolListener
java.lang.Object
org.logicalcobwebs.proxool.util.AbstractListenerContainer
org.logicalcobwebs.proxool.CompositeProxoolListener
- All Implemented Interfaces:
- ProxoolListenerIF, org.logicalcobwebs.proxool.util.ListenerContainerIF
public class CompositeProxoolListener
- extends org.logicalcobwebs.proxool.util.AbstractListenerContainer
- implements ProxoolListenerIF
A ProxoolListenerIF
that keeps a list of ProxoolListenerIF
s
and notifies them in a thread safe manner.
It also implements ListenerContainerIF
which provides methods for
adding
and
removing
listeners.
- Since:
- Proxool 0.8
- Version:
- $Revision: 1.5 $, $Date: 2004/03/16 08:48:32 $
- Author:
- Christian Nedregaard (christian_nedregaard@email.com), $Author: brenuart $ (current maintainer)
Method Summary |
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, isEmpty, removeListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeProxoolListener
public CompositeProxoolListener()
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 interface ProxoolListenerIF
- 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 interface ProxoolListenerIF
- Parameters:
alias
- the alias of the pool about to be shut down.- See Also:
ProxoolListenerIF.onShutdown(String)