Class JsonConfiguration

All Implemented Interfaces:
Configuration, Reconfigurable, Filterable, LifeCycle, LifeCycle2
Direct Known Subclasses:
YamlConfiguration

public class JsonConfiguration extends AbstractConfiguration implements Reconfigurable
Creates a Node hierarchy from a JSON file.
  • Field Details

    • VERBOSE_CLASSES

      private static final String[] VERBOSE_CLASSES
    • status

      private final List<JsonConfiguration.Status> status
    • root

      private com.fasterxml.jackson.databind.JsonNode root
  • Constructor Details

  • Method Details

    • getObjectMapper

      protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
    • setup

      public void setup()
      Overrides:
      setup in class AbstractConfiguration
    • reconfigure

      public Configuration reconfigure()
      Specified by:
      reconfigure in interface Reconfigurable
    • constructNode

      private Node constructNode(String name, Node parent, com.fasterxml.jackson.databind.JsonNode jsonNode)
    • getType

      private String getType(com.fasterxml.jackson.databind.JsonNode node, String name)
    • processAttributes

      private void processAttributes(Node parent, com.fasterxml.jackson.databind.JsonNode node)
    • toString

      public String toString()
      Overrides:
      toString in class Object