Class ShutdownHookUtils


  • 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 Detail

      • ShutdownHookUtils

        ShutdownHookUtils()
    • Method Detail

      • addShutDownHook

        public static void addShutDownHook​(Thread hook)
      • removeShutdownHook

        public static void removeShutdownHook​(Thread hook)