org.apache.axiom.attachments.lifecycle.impl
Class VMShutdownHook

java.lang.Object
  extended by java.lang.Thread
      extended by org.apache.axiom.attachments.lifecycle.impl.VMShutdownHook
All Implemented Interfaces:
java.lang.Runnable

public class VMShutdownHook
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private static java.util.Set files
           
private static VMShutdownHook instance
           
private  boolean isRegistered
           
private static org.apache.commons.logging.Log log
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
private VMShutdownHook()
           
 
Method Summary
(package private)  void add(java.io.File file)
           
(package private) static VMShutdownHook hook()
           
 boolean isRegistered()
           
 void run()
           
 void setRegistered(boolean isRegistered)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

instance

private static VMShutdownHook instance

files

private static java.util.Set files

isRegistered

private boolean isRegistered
Constructor Detail

VMShutdownHook

private VMShutdownHook()
Method Detail

hook

static VMShutdownHook hook()

add

void add(java.io.File file)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

isRegistered

public boolean isRegistered()

setRegistered

public void setRegistered(boolean isRegistered)