01: /*
02: * This software is released under a licence similar to the Apache Software Licence.
03: * See org.logicalcobwebs.proxool.package.html for details.
04: * The latest version is available at http://proxool.sourceforge.net
05: */
06: package org.logicalcobwebs.proxool;
07:
08: import java.util.Properties;
09:
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(
25: ConnectionPoolDefinitionIF connectionPoolDefinition,
26: Properties completeInfo);
27:
28: /**
29: * Notify that a connection pool will be shutdown. Gets called just *before*
30: * the pool is shut down.
31: * @param alias the alias of the pool about to be shut down.
32: */
33: void onShutdown(String alias);
34:
35: }
36:
37: /*
38: Revision history:
39: $Log: ProxoolListenerIF.java,v $
40: Revision 1.2 2003/03/03 11:11:58 billhorsman
41: fixed licence
42:
43: Revision 1.1 2003/02/24 01:15:05 chr32
44: Init rev.
45:
46: */
|