1 /* 2 * This software is released under a licence similar to the Apache Software Licence. 3 * See org.logicalcobwebs.proxool.package.html for details. 4 * The latest version is available at http://proxool.sourceforge.net 5 */ 6 package org.logicalcobwebs.proxool; 7 8 import java.util.Properties; 9 10 /** 11 * Listener for global Proxool events. 12 * @version $Revision: 1.2 $, $Date: 2003/03/03 11:11:58 $ 13 * @author Christian Nedregaard (christian_nedregaard@email.com) 14 * @author $Author: billhorsman $ (current maintainer) 15 * @since Proxool 0.8 16 */ 17 public interface ProxoolListenerIF { 18 19 /** 20 * Notify that a new connection pool has been registered. Gets called *after* the registered. 21 * @param connectionPoolDefinition the new definition. 22 * @param completeInfo the properties that could be used to create this definition. 23 */ 24 void onRegistration(ConnectionPoolDefinitionIF connectionPoolDefinition, Properties completeInfo); 25 26 /** 27 * Notify that a connection pool will be shutdown. Gets called just *before* 28 * the pool is shut down. 29 * @param alias the alias of the pool about to be shut down. 30 */ 31 void onShutdown(String alias); 32 33 } 34 35 /* 36 Revision history: 37 $Log: ProxoolListenerIF.java,v $ 38 Revision 1.2 2003/03/03 11:11:58 billhorsman 39 fixed licence 40 41 Revision 1.1 2003/02/24 01:15:05 chr32 42 Init rev. 43 44 */