API onto application configuration
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.Object |
getAt(java.lang.Object key) Enables the object[foo] syntax |
<T> |
T |
getProperty(java.lang.String key, java.lang.Class<T> targetType) Return the property value associated with the given key, or null
if the key cannot be resolved. |
<T> |
T |
getProperty(java.lang.String key, java.lang.Class<T> targetType, T defaultValue) Return the property value associated with the given key, or null
if the key cannot be resolved. |
<T> |
T |
getRequiredProperty(java.lang.String key, java.lang.Class<T> targetType) Return the property value associated with the given key, converted to the given targetType (never null ). |
|
java.lang.Object |
navigate(java.lang.String... path) Navigate the map for the given path |
|
void |
setAt(java.lang.Object key, java.lang.Object value) Enables the object[foo] = 'stuff' syntax |
Methods inherited from class | Name |
---|---|
interface java.lang.Iterable |
java.lang.Iterable#iterator() |
interface java.util.Map |
java.util.Map#remove(java.lang.Object), java.util.Map#get(java.lang.Object), java.util.Map#put(java.lang.Object, java.lang.Object), java.util.Map#equals(java.lang.Object), java.util.Map#values(), java.util.Map#hashCode(), java.util.Map#clear(), java.util.Map#isEmpty(), java.util.Map#size(), java.util.Map#entrySet(), java.util.Map#putAll(java.util.Map), java.util.Map#keySet(), java.util.Map#containsValue(java.lang.Object), java.util.Map#containsKey(java.lang.Object) |
Enables the object[foo] syntax
key
- The key Return the property value associated with the given key, or null
if the key cannot be resolved.
key
- the property name to resolvetargetType
- the expected type of the property value Return the property value associated with the given key, or null
if the key cannot be resolved.
key
- the property name to resolvetargetType
- the expected type of the property value Return the property value associated with the given key, converted to the given
targetType (never null
).
Navigate the map for the given path
path
- The pathEnables the object[foo] = 'stuff' syntax
key
- The keyvalue
- The value