interface ConfigMap extends java.lang.Iterable<Map.Entry<java.lang.String, java.lang.Object>>, java.util.Map<java.lang.String, java.lang.Object>
API onto application configuration
Type | Name and description |
---|---|
java.lang.Object |
at |
Type Params | Return Type | Name and description |
---|---|---|
|
abstract java.lang.Object |
getAt(java.lang.Object key) Enables the object[foo] syntax |
<T> |
abstract 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> |
abstract 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> |
abstract 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 ). |
|
abstract java.lang.Object |
navigate(java.lang.String[] path) Navigate the map for the given path |
|
abstract void |
setAt(java.lang.Object key, java.lang.Object value) Enables the object[foo] = 'stuff' syntax |
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 @return
path
- The pathEnables the object[foo] = 'stuff' syntax
key
- The keyvalue
- The value