Class SystemExitHandler

java.lang.Object
org.jboss.ws.tools.SystemExitHandler
All Implemented Interfaces:
ExitHandler

public class SystemExitHandler extends Object implements ExitHandler
Default ExitHandler that actually calls System.exit(). Used in production code. Implemented as a thread-safe singleton.
  • Method Details

    • getInstance

      public static SystemExitHandler getInstance()
    • exit

      public void exit(int status)
      Description copied from interface: ExitHandler
      Handle program exit with the given status code.
      Specified by:
      exit in interface ExitHandler
      Parameters:
      status - Exit status code (0 for success, non-zero for error)