|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroovy.lang.GroovyObjectSupport
grails.util.GrailsConfig
instead
@Deprecated public class GrailsConfig
General purpose Grails Configuration Utility for retieving configuration options with the ability to log warnings on type/constraint mismatch.
| Method Summary | ||
|---|---|---|
static
|
get(java.lang.String key)
Deprecated. Utility method for retrieving a configuration value. |
|
static
|
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
|
get(java.lang.String key,
T defaultValue)
Deprecated. Configuration Value lookup with a default value. |
|
static
|
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
|
getMandatory(java.lang.String key)
Deprecated. Configuration Value lookup with thows a GrailsConfigurationException when the value is null |
|
static
|
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. |
|
| Methods inherited from class groovy.lang.GroovyObjectSupport |
|---|
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> T get(java.lang.String key)
T - the type parameterkey - the flattened key
public static <T> T get(java.lang.String key,
java.lang.Class<T> type)
T - the type parameterkey - the flattened keytype - the required type
public static <T> T get(java.lang.String key,
T defaultValue)
T - the type parameterkey - the flattened keydefaultValue - the default value
defaultValue
public 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 values
allowedValues, otherwise the defaultValuepublic static <T> T getMandatory(java.lang.String key)
T - the type parameterkey - the flattened key
public static <T> T getMandatory(java.lang.String key,
java.util.List<T> allowedValues)
T - the type parameterkey - the flattened keyallowedValues - List of allowed values
public static java.lang.Object getAt(java.lang.Object key)
GrailsConfig['my.config.key']
key - the config key
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||