org.logicalcobwebs.proxool
Class CompositeConfigurationListener

java.lang.Object
  extended by org.logicalcobwebs.proxool.util.AbstractListenerContainer
      extended by org.logicalcobwebs.proxool.CompositeConfigurationListener
All Implemented Interfaces:
ConfigurationListenerIF, ListenerContainerIF

public class CompositeConfigurationListener
extends AbstractListenerContainer
implements ConfigurationListenerIF

A ConfigurationListenerIF that keeps a list of ConfigurationListenerIFs and notifies them in a thread safe manner. It also implements ListenerContainerIF which provides methods for adding and removing listeners.

Since:
Proxool 0.7
Version:
$Revision: 1.6 $, $Date: 2004/03/16 08:48:32 $
Author:
Christian Nedregaard (christian_nedregaard@email.com), $Author: brenuart $ (current maintainer)

Field Summary
(package private) static Log LOG
           
 
Constructor Summary
CompositeConfigurationListener()
           
 
Method Summary
 void definitionUpdated(ConnectionPoolDefinitionIF connectionPoolDefinition, java.util.Properties completeInfo, java.util.Properties changedInfo)
          Gets called once after a pool has been updated.
 
Methods inherited from class org.logicalcobwebs.proxool.util.AbstractListenerContainer
addListener, getListeners, isEmpty, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

static final Log LOG
Constructor Detail

CompositeConfigurationListener

public CompositeConfigurationListener()
Method Detail

definitionUpdated

public void definitionUpdated(ConnectionPoolDefinitionIF connectionPoolDefinition,
                              java.util.Properties completeInfo,
                              java.util.Properties changedInfo)
Description copied from interface: ConfigurationListenerIF
Gets called once after a pool has been updated.

Specified by:
definitionUpdated in interface ConfigurationListenerIF
Parameters:
connectionPoolDefinition - the new definition
completeInfo - the properties that could be used to create this definition
changedInfo - only the properties that have changed since the pool was registered, or this method was las called.
See Also:
ConfigurationListenerIF.definitionUpdated(ConnectionPoolDefinitionIF, Properties, Properties)