public static void registerShutdownHook ( int priority , boolean runOnCrash , Runnable action ) { m_instance . addHook ( priority , runOnCrash , action ) ; //Any hook registered lets print crash messsage. ShutdownHooks . m_crashMessage = true ; }
Register an action to be run when the JVM exits .