ch.elca.dependency.util
Class Shutdown

java.lang.Object
  |
  +--ch.elca.dependency.util.Shutdown

public class Shutdown
extends java.lang.Object

The class Shutdown is used to shut down the Dependency Tool. Because all classes which extend the class NotifyOnExit need to be notified that the Dependency is about to be terminated, never call System.exit() but the shutdown method of this class.

Version:
1.0-beta
Author:
Pawel Kowalski

Constructor Summary
Shutdown()
          Creates a new Shutdown instance.
 
Method Summary
static void register(NotifyOnExit notifyOnExit)
          Register an instance of the class NotifyOnExit for notification just before the tool terminates.
static void shutdown()
          Shutdown the Dependency Tool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shutdown

public Shutdown()
Creates a new Shutdown instance.

Method Detail

shutdown

public static void shutdown()
Shutdown the Dependency Tool.


register

public static void register(NotifyOnExit notifyOnExit)
Register an instance of the class NotifyOnExit for notification just before the tool terminates.

Parameters:
notifyOnExit - a NotifyOnExit value


Copyright © 2003 ELCA Informatique SA. All Rights Reserved.