Class JsonNodeFileSource
java.lang.Object
com.arpnetworking.configuration.jackson.BaseJsonNodeSource
com.arpnetworking.configuration.jackson.JsonNodeFileSource
- All Implemented Interfaces:
JsonNodeSource
JsonNode
based configuration sourced from a file.- Author:
- Ville Koskela (ville dot koskela at inscopemetrics dot io)
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.arpnetworking.configuration.jackson.BaseJsonNodeSource
_objectMapper
-
Method Summary
Modifier and TypeMethodDescriptionOptional<com.fasterxml.jackson.databind.JsonNode>
Retrieve theJsonNode
by looking up the sequence of keys or returnOptional.empty()
if any key in the sequence does not exist.Generate a Steno log compatible representation.Methods inherited from class com.arpnetworking.configuration.jackson.BaseJsonNodeSource
getValue, toString
-
Method Details
-
getValue
Description copied from interface:JsonNodeSource
Retrieve theJsonNode
by looking up the sequence of keys or returnOptional.empty()
if any key in the sequence does not exist.- Parameters:
keys
- The sequence of keys to look-up to find the value.- Returns:
- The
JsonNode
representing the value.
-
toLogValue
Description copied from class:BaseJsonNodeSource
Generate a Steno log compatible representation.- Overrides:
toLogValue
in classBaseJsonNodeSource
- Returns:
- Steno log compatible representation.
-