Class YamlConfigSource

java.lang.Object
br.dev.rplus.cup.config.source.YamlConfigSource
All Implemented Interfaces:
ConfigSource

public class YamlConfigSource extends Object implements ConfigSource
ConfigSource implementation for YAML files.
  • Constructor Details

    • YamlConfigSource

      public YamlConfigSource(InputStream input)
      Creates a new YAML config source.
      Parameters:
      input - the input stream of the YAML file
  • Method Details

    • load

      public Map<String,Object> load()
      Description copied from interface: ConfigSource
      Loads configuration data and returns it as a Map.
      Specified by:
      load in interface ConfigSource
      Returns:
      a map with configuration keys and values