org.apache.manifoldcf.core.system
Class ManifoldCF.DatabaseShutdown

java.lang.Object
  extended by org.apache.manifoldcf.core.system.ManifoldCF.DatabaseShutdown
All Implemented Interfaces:
IShutdownHook
Enclosing class:
ManifoldCF

protected static class ManifoldCF.DatabaseShutdown
extends java.lang.Object
implements IShutdownHook

Class that cleans up database handles on exit


Constructor Summary
ManifoldCF.DatabaseShutdown()
           
 
Method Summary
protected  void closeDatabase()
           
 void doCleanup()
          Do the requisite cleanup.
protected  void finalize()
          Finalizer, which is designed to catch class unloading that tomcat 5.5 does.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManifoldCF.DatabaseShutdown

public ManifoldCF.DatabaseShutdown()
Method Detail

doCleanup

public void doCleanup()
               throws ManifoldCFException
Description copied from interface: IShutdownHook
Do the requisite cleanup.

Specified by:
doCleanup in interface IShutdownHook
Throws:
ManifoldCFException

closeDatabase

protected void closeDatabase()
                      throws ManifoldCFException
Throws:
ManifoldCFException

finalize

protected void finalize()
                 throws java.lang.Throwable
Finalizer, which is designed to catch class unloading that tomcat 5.5 does.

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable