net.xoetrope.xui.build.conditional
Class ShutdownHook
java.lang.Object
net.xoetrope.xui.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) Xoetrope Ltd., 2001-2004
$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(XProject project)
addLifeCycleListener
public void addLifeCycleListener(XLifeCycleListener lcl)
- Add a listener for startup and shutdown events
- Parameters:
lcl -
canClose
public boolean canClose(XProject project)
- Add a listener for startup and shutdown events
- Parameters:
lcl -