org.logicalcobwebs.proxool
Class ShutdownHook

java.lang.Object
  extended by org.logicalcobwebs.proxool.ShutdownHook
All Implemented Interfaces:
java.lang.Runnable

 class ShutdownHook
extends java.lang.Object
implements java.lang.Runnable

This is instantiated statically by ProxoolFacade. It will automatically close down all the connections when the JVM stops.

Since:
Proxool 0.7
Version:
$Revision: 1.11 $, $Date: 2003/12/16 09:09:32 $
Author:
bill, $Author: billhorsman $ (current maintainer)

Field Summary
private static Log LOG
           
private static boolean registered
           
 
Constructor Summary
private ShutdownHook()
          Registers this ShutdownHook with Runtime
 
Method Summary
protected static void init()
           
protected static void remove(java.lang.Thread t)
           
 void run()
          Remove all connection pools without delay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Log LOG

registered

private static boolean registered
Constructor Detail

ShutdownHook

private ShutdownHook()
Registers this ShutdownHook with Runtime

Method Detail

init

protected static void init()

remove

protected static void remove(java.lang.Thread t)

run

public void run()
Remove all connection pools without delay

Specified by:
run in interface java.lang.Runnable
See Also:
ProxoolFacade.removeAllConnectionPools(int)