|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Environment | |
---|---|
grails.util | |
org.codehaus.groovy.grails.plugins |
Uses of Environment in grails.util |
---|
Methods in grails.util that return Environment | |
---|---|
static Environment |
Environment.getCurrent()
Returns the current environment which is typcally either DEVELOPMENT, PRODUCTION or TEST. |
static Environment |
Environment.getCurrentEnvironment()
|
static Environment |
Environment.getEnvironment(String shortName)
Returns the environment for the given short name |
static Environment |
Environment.valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Environment[] |
Environment.values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods in grails.util with parameters of type Environment | |
---|---|
static Object |
Environment.executeForEnvironment(Environment env,
groovy.lang.Closure closure)
Takes an environment specific DSL block like:
environments {
development {}
production {}
}
And executes the closure that relates to the specified environment |
static groovy.lang.Closure |
Environment.getEnvironmentSpecificBlock(Environment env,
groovy.lang.Closure closure)
Takes an environment specific DSL block like:
environments {
development {}
production {}
}
And returns the closure that relates to the specified |
Uses of Environment in org.codehaus.groovy.grails.plugins |
---|
Methods in org.codehaus.groovy.grails.plugins with parameters of type Environment | |
---|---|
boolean |
GrailsPlugin.supportsEnvironment(Environment environment)
Returns whether this plugin supports the given environment name |
boolean |
DefaultGrailsPlugin.supportsEnvironment(Environment environment)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |