public enum RunMode extends Enum<RunMode>
| Enum Constant and Description |
|---|
DEV
Development mode.
|
PROD
Production mode.
|
| Modifier and Type | Method and Description |
|---|---|
static RunMode |
get()
Returns the current run-mode.
|
static void |
init()
Initializes the run-mode based on system-properties.
|
void |
set()
Set this mode as the current run-mode.
|
static RunMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RunMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RunMode PROD
public static final RunMode DEV
public static RunMode[] values()
for (RunMode c : RunMode.values()) System.out.println(c);
public static RunMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static RunMode get()
public static void init()
public void set()