Package org.forgerock.config.resolvers
Class JsonValueResolver
java.lang.Object
org.forgerock.config.resolvers.JsonValueResolver
- All Implemented Interfaces:
PropertyResolver
A configuration property resolver that uses a JsonValue to resolve properties.
A key is resolved by finding any combination of dot-notated JsonPointer
, where dots are also valid keys.
Example:
{
"object": {
"simple.value": 5,
"complex": {
"value": 10
}
}
}
object.simple.value
resolves to 5object.complex.value
resolves to 10
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.forgerock.config.resolvers.PropertyResolver
getProperty, getProperty, getProperty
-
Method Details
-
keys
-
getProperty
Description copied from interface:PropertyResolver
Returns the value of the specified property. The method returns an emptyOptional
if the property is not found. The resolved property has to be considered sensitive ifsensitive
istrue
and implementations are required to handle it with special attention (no logs, ...).- Specified by:
getProperty
in interfacePropertyResolver
- Parameters:
key
- The name of the requested property. The key can't be null.sensitive
-true
is the property value has to be considered a sensitive value (such as a password).- Returns:
- An
Optional
string that contains the value of the requested property, or emptyOptional
if property is undefined.
-
toString
-