Class SystemUtils
java.lang.Object
is.galia.util.SystemUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidClears any exit request created byexit(int).static voidexit(int code) Conditionally exits depending on the return value ofApplication.isTesting():static booleanstatic int
-
Method Details
-
clearExitRequest
public static void clearExitRequest()Clears any exit request created byexit(int). -
exit
public static void exit(int code) Conditionally exits depending on the return value of
Application.isTesting():- If that method returns
false,System.exit(int)is called. - Otherwise, it is not called, but subsequent calls to
exitRequested()will returntrue, andrequestedExitCode()will return the requested exit code.
- Parameters:
code- Status code.
- If that method returns
-
exitRequested
public static boolean exitRequested()- Returns:
- Whether
exit(int)has been invoked.
-
requestedExitCode
public static int requestedExitCode()- Returns:
- Exit code passed to
exit(int). This is meaningless unlessexitRequested()returnstrue.
-