Class ManifoldCF.DatabaseShutdown
- java.lang.Object
-
- 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
Constructors Constructor Description DatabaseShutdown()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseDatabase()voiddoCleanup(IThreadContext threadContext)Do the requisite cleanup.protected voidfinalize()Finalizer, which is designed to catch class unloading that tomcat 5.5 does.
-
-
-
Method Detail
-
doCleanup
public void doCleanup(IThreadContext threadContext) throws ManifoldCFException
Description copied from interface:IShutdownHookDo the requisite cleanup.- Specified by:
doCleanupin interfaceIShutdownHook- Throws:
ManifoldCFException
-
closeDatabase
protected void closeDatabase() throws ManifoldCFException- Throws:
ManifoldCFException
-
finalize
protected void finalize() throws java.lang.ThrowableFinalizer, which is designed to catch class unloading that tomcat 5.5 does.- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-