接口 SystemExiter

  • 所有已知实现类:
    JvmSystemExiter

    public interface SystemExiter
    Interface for exiting the JVM. This abstraction is only useful in order to allow classes that make System.exit calls to be testable, since calling System.exit during a unit test would cause the entire jvm to finish.
    作者:
    Lucas Ward
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      voidexit​(int status)
      Terminate the currently running Java Virtual Machine.
    • 方法详细资料

      • exit

        void exit​(int status)
        Terminate the currently running Java Virtual Machine.
        参数:
        status - exit status.
        抛出:
        java.lang.SecurityException - if a security manager exists and its checkExit method doesn't allow exit with the specified status.
        另请参阅:
        System.exit(int)