Class JsonNodeFileSource

java.lang.Object
com.arpnetworking.configuration.jackson.BaseJsonNodeSource
com.arpnetworking.configuration.jackson.JsonNodeFileSource
All Implemented Interfaces:
JsonNodeSource

public final class JsonNodeFileSource extends BaseJsonNodeSource
JsonNode based configuration sourced from a file.
Author:
Ville Koskela (ville dot koskela at inscopemetrics dot io)
  • Method Details

    • getValue

      public Optional<com.fasterxml.jackson.databind.JsonNode> getValue(String... keys)
      Description copied from interface: JsonNodeSource
      Retrieve the JsonNode by looking up the sequence of keys or return Optional.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

      public Object toLogValue()
      Description copied from class: BaseJsonNodeSource
      Generate a Steno log compatible representation.
      Overrides:
      toLogValue in class BaseJsonNodeSource
      Returns:
      Steno log compatible representation.