org.apache.maven.shared.utils.cli
Class ShutdownHookUtils

java.lang.Object
  extended by org.apache.maven.shared.utils.cli.ShutdownHookUtils

public class ShutdownHookUtils
extends Object

A shutdown hook that does not throw any exceptions upon container startup/shutdown or security manager restrictions. Incorrect usage of the hook itself may still throw an exception.

Author:
Kristian Rosenvold

Constructor Summary
ShutdownHookUtils()
           
 
Method Summary
static void addShutDownHook(Thread hook)
           
static void removeShutdownHook(Thread hook)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShutdownHookUtils

public ShutdownHookUtils()
Method Detail

addShutDownHook

public static void addShutDownHook(Thread hook)

removeShutdownHook

public static void removeShutdownHook(Thread hook)


Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.