public enum RuntimeMode extends Enum<RuntimeMode>
| Enum Constant and Description |
|---|
DEVELOPMENT
Refers to a runtime that is used for development times.
|
PRODUCTION
Refers to a common production environment.
|
TEST
Refers to a runtime that is used in the context of testing.
|
UNKNOWN
An unknown runtime.
|
| Modifier and Type | Method and Description |
|---|---|
static RuntimeMode |
fromEnvironment(Environment e)
Determine the runtime mode.
|
static RuntimeMode |
fromEnvironmentName(String name) |
static RuntimeMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RuntimeMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RuntimeMode PRODUCTION
public static final RuntimeMode TEST
public static final RuntimeMode DEVELOPMENT
public static final RuntimeMode UNKNOWN
Environment.getEnvironmentName().public static RuntimeMode[] values()
for (RuntimeMode c : RuntimeMode.values()) System.out.println(c);
public static RuntimeMode 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 RuntimeMode fromEnvironment(Environment e)
e - the Environment instancefromEnvironmentName(String)
from the name of the environmentpublic static RuntimeMode fromEnvironmentName(String name)
name - the name of the runtime modeUNKNOWN if an
exception occurs.Copyright © 2015 SDL Fredhopper. All rights reserved.