public class CompositeConfigurationListener extends AbstractListenerContainer implements ConfigurationListenerIF
ConfigurationListenerIF
that keeps a list of ConfigurationListenerIF
s
and notifies them in a thread safe manner.
It also implements ListenerContainerIF
which provides methods for
adding
and
removing
listeners.Constructor and Description |
---|
CompositeConfigurationListener() |
Modifier and Type | Method and Description |
---|---|
void |
definitionUpdated(ConnectionPoolDefinitionIF connectionPoolDefinition,
java.util.Properties completeInfo,
java.util.Properties changedInfo)
Gets called once after a pool has been updated.
|
addListener, getListeners, isEmpty, removeListener
public void definitionUpdated(ConnectionPoolDefinitionIF connectionPoolDefinition, java.util.Properties completeInfo, java.util.Properties changedInfo)
ConfigurationListenerIF
definitionUpdated
in interface ConfigurationListenerIF
connectionPoolDefinition
- the new definitioncompleteInfo
- the properties that could be used to create this definitionchangedInfo
- only the properties that have changed since the pool was
registered, or this method was las called.ConfigurationListenerIF.definitionUpdated(ConnectionPoolDefinitionIF, Properties, Properties)