Class AbstractYAMLBasedConfiguration

All Implemented Interfaces:
Cloneable, Configuration, EventSource, HierarchicalConfiguration<ImmutableNode>, ImmutableConfiguration, ImmutableHierarchicalConfiguration, SynchronizerSupport, InMemoryNodeModelSupport, NodeKeyResolver<ImmutableNode>, NodeModelSupport<ImmutableNode>
Direct Known Subclasses:
JSONConfiguration, YAMLConfiguration

A base class for configuration implementations based on YAML structures.

This base class offers functionality related to YAML-like data structures based on maps. Such a map has strings as keys and arbitrary objects as values. The class offers methods to transform such a map into a hierarchy of ImmutableNode objects and vice versa.

  • Constructor Details

  • Method Details

    • constructMap

      Constructs a YAML map, i.e. String -> Object from a given configuration node.
      node - The configuration node to create a map from.
      A Map that contains the configuration node information.
    • load

      protected void load(Map<String,Object> map)
      Loads this configuration from the content of the specified map. The data in the map is transformed into a hierarchy of ImmutableNode objects.
      map - the map to be processed