net.xoetrope.xui.build.conditional
Class ShutdownHook

java.lang.Object
  extended by 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.
 
Constructor Summary
ShutdownHook()
           
 
Method Summary
 void addLifeCycleListener(XLifeCycleListener lcl)
          Add a listener for startup and shutdown events
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

forceShutdown

public static boolean forceShutdown
Force shutdown of the JVM if true.

Constructor Detail

ShutdownHook

public ShutdownHook()
Method Detail

addLifeCycleListener

public void addLifeCycleListener(XLifeCycleListener lcl)
Add a listener for startup and shutdown events

Parameters:
lcl -