|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<BuildScope> grails.util.BuildScope
public enum BuildScope
An enum that represents the different scopes that plugins apply to
Enum Constant Summary | |
---|---|
ALL
|
|
FUNCTIONAL_TEST
|
|
RUN
|
|
TEST
|
|
WAR
|
Field Summary | |
---|---|
static String |
KEY
The key used to lookup the build scope in the System properties |
Method Summary | |
---|---|
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(String... scopeNames)
Returns whether the specified scope name(s) are valid given the current scope |
String |
toString()
|
static BuildScope |
valueOf(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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Field Detail |
---|
public static final String KEY
Method Detail |
---|
public static BuildScope[] values()
for (BuildScope c : BuildScope.values()) System.out.println(c);
public static BuildScope valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<BuildScope>
public static BuildScope getCurrent()
public static boolean isValid(String... scopeNames)
scopeNames
- The list of scope names
public void enable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |