Class ShutdownHookUtils
java.lang.Object
org.apache.maven.shared.utils.cli.ShutdownHookUtils
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addShutDownHook
(Thread hook) static void
removeShutdownHook
(Thread hook)
-
Constructor Details
-
ShutdownHookUtils
public ShutdownHookUtils()
-
-
Method Details
-
addShutDownHook
- Parameters:
hook
- The thread hook.
-
removeShutdownHook
- Parameters:
hook
- The hook which should be removed.
-