Interface ExitCallHook


public interface ExitCallHook
Understands a hook called by NoExitSecurityManager when an application tries to terminate the current JVM. This hook is called before throwing ExitException.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    exitCalled(int status)
    Implement this method to do any context-specific cleanup.
  • Method Details

    • exitCalled

      void exitCalled(int status)
      Implement this method to do any context-specific cleanup. This hook is provided since it may not always be possible to catch the ExitException explicitly (like when it's caught by someone else, or thrown from the event dispatch thread).
      Parameters:
      status - the status the exit status.