1 6 package org.logicalcobwebs.proxool; 7 8 import java.util.Properties ; 9 10 import org.apache.commons.logging.Log; 11 import org.apache.commons.logging.LogFactory; 12 import org.logicalcobwebs.proxool.util.AbstractListenerContainer; 13 14 27 public class CompositeConfigurationListener extends AbstractListenerContainer implements ConfigurationListenerIF { 28 static final Log LOG = LogFactory.getLog(CompositeConfigurationListener.class); 29 30 33 public void definitionUpdated( ConnectionPoolDefinitionIF connectionPoolDefinition, 34 Properties completeInfo, 35 Properties changedInfo) 36 { 37 Object [] listeners = getListeners(); 38 39 for(int i=0; i<listeners.length; i++) { 40 try { 41 ConfigurationListenerIF configurationListener = (ConfigurationListenerIF) listeners[i]; 42 configurationListener.definitionUpdated(connectionPoolDefinition, (Properties ) completeInfo.clone(), (Properties ) changedInfo.clone()); 43 } 44 catch (RuntimeException re) { 45 LOG.warn("RuntimeException received from listener "+listeners[i]+" when dispatching event", re); 46 } 47 } 48 } 49 } 50 51 | Popular Tags |