public enum RuntimeEnvironment extends Enum<RuntimeEnvironment>
| Modifier and Type | Method and Description |
|---|---|
protected abstract LifecycleEnvironment |
lifecycleEnvironment() |
Promise<RunningEnvironment> |
start(ExecutorService executorService) |
Promise<RunningEnvironment> |
start(ExecutorService executorService,
Properties properties) |
static RuntimeEnvironment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RuntimeEnvironment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RuntimeEnvironment LOCAL
public static final RuntimeEnvironment SERVER
public static final RuntimeEnvironment TEST
public static RuntimeEnvironment[] values()
for (RuntimeEnvironment c : RuntimeEnvironment.values()) System.out.println(c);
public static RuntimeEnvironment 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 Promise<RunningEnvironment> start(ExecutorService executorService)
public Promise<RunningEnvironment> start(ExecutorService executorService, Properties properties)
protected abstract LifecycleEnvironment lifecycleEnvironment()
Copyright © 2020. All rights reserved.