public enum Mode extends Enum<Mode>
Application
Mode.
Default is TEST
Mode.
Enum Constant and Description |
---|
DEV
Development Mode.
|
PROD
Production Mode.
|
TEST
Test Mode.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
Display name of this Application Mode.
|
static Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final Mode DEV
Source is watched, Application is restarted on-demand, stacktraces are disclosed in responses.
public static final Mode TEST
Intended to be used in unit tests, almost equivalent to PROD
Mode.
public static final Mode PROD
Run from binaries only, nothing gets reloaded.
public static Mode[] values()
for (Mode c : Mode.values()) System.out.println(c);
public static Mode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null