public enum BuildScope extends java.lang.Enum<BuildScope>
| Enum Constant and Description |
|---|
ALL |
FUNCTIONAL_TEST |
RUN |
TEST |
WAR |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY
The key used to lookup the build scope in the System properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enable()
Enables this build scope as the curent system wide instance.
|
static BuildScope |
getCurrent()
Returns the current Scope object based on the currently set "grails.scope" System property
|
static boolean |
isValid(java.lang.String... scopeNames)
Returns whether the specified scope name(s) are valid given the current scope.
|
java.lang.String |
toString() |
static BuildScope |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BuildScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuildScope TEST
public static final BuildScope WAR
public static final BuildScope RUN
public static final BuildScope ALL
public static final BuildScope FUNCTIONAL_TEST
public static final java.lang.String KEY
public static BuildScope[] values()
for (BuildScope c : BuildScope.values()) System.out.println(c);
public static BuildScope valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Enum<BuildScope>public static BuildScope getCurrent()
public static boolean isValid(java.lang.String... scopeNames)
scopeNames - The list of scope namespublic void enable()