Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
grails.util.Environment

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
`void` | `DefaultGrailsPlugin.addExclude(Environment env)`
`void` | `GrailsPlugin.addExclude(Environment env)` Makes the plugin excluded for a particular Environment
`boolean` | `DefaultGrailsPlugin.supportsEnvironment(Environment environment)`
`boolean` | `GrailsPlugin.supportsEnvironment(Environment environment)` Returns whether this plugin supports the given environment name

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES