public enum DeployPhase extends Enum<DeployPhase>
| Enum Constant and Description |
|---|
DEVELOPMENT |
PRODUCTION |
STAGING |
TESTING |
| Modifier and Type | Field and Description |
|---|---|
static String |
SYSTEM_PROP_DEPLOY_PHASE |
| Modifier and Type | Method and Description |
|---|---|
static DeployPhase |
getCurrent() |
boolean |
isAny(DeployPhase... phases) |
boolean |
isDevelopment() |
boolean |
isNotProduction() |
boolean |
isProduction() |
boolean |
isStaging() |
boolean |
isTesting() |
static void |
setCurrent(DeployPhase phrase) |
static DeployPhase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeployPhase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeployPhase DEVELOPMENT
public static final DeployPhase TESTING
public static final DeployPhase STAGING
public static final DeployPhase PRODUCTION
public static final String SYSTEM_PROP_DEPLOY_PHASE
public static DeployPhase[] values()
for (DeployPhase c : DeployPhase.values()) System.out.println(c);
public static DeployPhase 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 boolean isDevelopment()
public boolean isTesting()
public boolean isStaging()
public boolean isProduction()
public boolean isNotProduction()
public boolean isAny(DeployPhase... phases)
public static DeployPhase getCurrent()
public static void setCurrent(DeployPhase phrase)
Copyright © 2017. All rights reserved.