org.formaria.aria.build.conditional
Class ShutdownHook
java.lang.Object
org.formaria.aria.build.conditional.ShutdownHook
public class ShutdownHook
- extends java.lang.Object
This class is conditionally included as it relies on features only available
in JDK1.3+. The class is instantiated at startup and creates a shutdown
hook that causes the debug log summary to be invoked just before the
application closes.
Copyright (c) Formaria Ltd., 2008
$Revision: 2.2 $
|
Field Summary |
static boolean |
forceShutdown
Force shutdown of the JVM if true. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
forceShutdown
public static boolean forceShutdown
- Force shutdown of the JVM if true.
ShutdownHook
public ShutdownHook(Project project)
addLifeCycleListener
public void addLifeCycleListener(LifeCycleListener lcl)
- Add a listener for startup and shutdown events
- Parameters:
lcl -
canClose
public boolean canClose(Project project)
- Add a listener for startup and shutdown events
- Parameters:
lcl -