org.formaria.aria.build.conditional
Class ShutdownHook

java.lang.Object
  extended by 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.
 
Constructor Summary
ShutdownHook(Project project)
           
 
Method Summary
 void addLifeCycleListener(LifeCycleListener lcl)
          Add a listener for startup and shutdown events
 boolean canClose(Project project)
          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(Project project)
Method Detail

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 -