interface Config extends org.springframework.core.env.PropertyResolver, grails.config.ConfigMap
Interface to application configuration
Type Params | Return Type | Name and description |
---|---|---|
|
abstract java.util.Map<java.lang.String, java.lang.Object> |
flatten()
|
<T> |
abstract T |
getProperty(java.lang.String key, java.lang.Class<T> targetType, T defaultValue, java.util.List<T> allowedValues) Return the property value associated with the given key, or defaultValue if the key cannot be resolved. |
|
abstract Config |
merge(java.util.Map<java.lang.String, java.lang.Object> toMerge) Merge another config and return this config |
|
abstract java.util.Properties |
toProperties() Converts the config to properties |
Methods inherited from class | Name |
---|---|
interface org.springframework.core.env.PropertyResolver |
org.springframework.core.env.PropertyResolver#containsProperty(java.lang.String), org.springframework.core.env.PropertyResolver#getRequiredProperty(java.lang.String), org.springframework.core.env.PropertyResolver#getRequiredProperty(java.lang.String, java.lang.Class), org.springframework.core.env.PropertyResolver#resolveRequiredPlaceholders(java.lang.String), org.springframework.core.env.PropertyResolver#resolvePlaceholders(java.lang.String), org.springframework.core.env.PropertyResolver#getProperty(java.lang.String, java.lang.Class, java.lang.Object), org.springframework.core.env.PropertyResolver#getProperty(java.lang.String), org.springframework.core.env.PropertyResolver#getProperty(java.lang.String, java.lang.String), org.springframework.core.env.PropertyResolver#getProperty(java.lang.String, java.lang.Class) |
interface grails.config.ConfigMap |
grails.config.ConfigMap#getAt(java.lang.Object), grails.config.ConfigMap#getRequiredProperty(java.lang.String, java.lang.Class), grails.config.ConfigMap#navigate([Ljava.lang.String;), grails.config.ConfigMap#setAt(java.lang.Object, java.lang.Object), grails.config.ConfigMap#getProperty(java.lang.String, java.lang.Class), grails.config.ConfigMap#getProperty(java.lang.String, java.lang.Class, java.lang.Object), grails.config.ConfigMap#iterator(), grails.config.ConfigMap#spliterator(), grails.config.ConfigMap#forEach(java.util.function.Consumer), grails.config.ConfigMap#remove(java.lang.Object), grails.config.ConfigMap#remove(java.lang.Object, java.lang.Object), grails.config.ConfigMap#get(java.lang.Object), grails.config.ConfigMap#put(java.lang.Object, java.lang.Object), grails.config.ConfigMap#equals(java.lang.Object), grails.config.ConfigMap#values(), grails.config.ConfigMap#hashCode(), grails.config.ConfigMap#clear(), grails.config.ConfigMap#isEmpty(), grails.config.ConfigMap#replace(java.lang.Object, java.lang.Object), grails.config.ConfigMap#replace(java.lang.Object, java.lang.Object, java.lang.Object), grails.config.ConfigMap#replaceAll(java.util.function.BiFunction), grails.config.ConfigMap#size(), grails.config.ConfigMap#merge(java.lang.Object, java.lang.Object, java.util.function.BiFunction), grails.config.ConfigMap#entrySet(), grails.config.ConfigMap#putAll(java.util.Map), grails.config.ConfigMap#putIfAbsent(java.lang.Object, java.lang.Object), grails.config.ConfigMap#compute(java.lang.Object, java.util.function.BiFunction), grails.config.ConfigMap#forEach(java.util.function.BiConsumer), grails.config.ConfigMap#containsKey(java.lang.Object), grails.config.ConfigMap#computeIfAbsent(java.lang.Object, java.util.function.Function), grails.config.ConfigMap#keySet(), grails.config.ConfigMap#containsValue(java.lang.Object), grails.config.ConfigMap#getOrDefault(java.lang.Object, java.lang.Object), grails.config.ConfigMap#computeIfPresent(java.lang.Object, java.util.function.BiFunction) |
Return the property value associated with the given key, or
defaultValue
if the key cannot be resolved.
key
- the property name to resolvetargetType
- the expected type of the property valuedefaultValue
- the default value to return if no value is foundthe
- allowable valuesMerge another config and return this config
toMerge
- The map to mergeConverts the config to properties