instead@Deprecated
public class GrailsConfig
extends groovy.lang.GroovyObjectSupport
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
get(java.lang.String key)
Deprecated.
Utility method for retrieving a configuration value.
|
static <T> T |
get(java.lang.String key,
java.lang.Class<T> type)
Deprecated.
Utility method for retrieving a configuration value and performs type checking
(i.e.
|
static <T> T |
get(java.lang.String key,
T defaultValue)
Deprecated.
Configuration Value lookup with a default value.
|
static <T> T |
get(java.lang.String key,
T defaultValue,
java.util.List<T> allowedValues)
Deprecated.
Configuration Value lookup with a default value and a list of allowed values.
|
static java.lang.Object |
getAt(java.lang.Object key)
Deprecated.
Configuration Value lookup for Groovy's array-like property access
GrailsConfig['my.config.key'] |
static <T> T |
getMandatory(java.lang.String key)
Deprecated.
Configuration Value lookup with thows a GrailsConfigurationException when the value is null
|
static <T> T |
getMandatory(java.lang.String key,
java.util.List<T> allowedValues)
Deprecated.
Configuration Value lookup with thows a GrailsConfigurationException when the value is null
or not within the allowedValues.
|
public static <T> T get(java.lang.String key)
T - the type parameterkey - the flattened keypublic static <T> T get(java.lang.String key,
java.lang.Class<T> type)
T - the type parameterkey - the flattened keytype - the required typepublic static <T> T get(java.lang.String key,
T defaultValue)
T - the type parameterkey - the flattened keydefaultValue - the default valuedefaultValuepublic static <T> T get(java.lang.String key,
T defaultValue,
java.util.List<T> allowedValues)
T - the type parameterkey - the flattened keydefaultValue - the default valueallowedValues - List of allowed valuesallowedValues, otherwise the defaultValuepublic static <T> T getMandatory(java.lang.String key)
T - the type parameterkey - the flattened keypublic static <T> T getMandatory(java.lang.String key,
java.util.List<T> allowedValues)
T - the type parameterkey - the flattened keyallowedValues - List of allowed valuespublic static java.lang.Object getAt(java.lang.Object key)
GrailsConfig['my.config.key']key - the config key