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, org.logicalcobwebs.proxool.util.ListenerContainerIF

public class CompositeConfigurationListener
extends org.logicalcobwebs.proxool.util.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)

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, isEmpty, removeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)