Package br.dev.rplus.cup.config.source
Class YamlConfigSource
java.lang.Object
br.dev.rplus.cup.config.source.YamlConfigSource
- All Implemented Interfaces:
ConfigSource
ConfigSource
implementation for YAML files.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
YamlConfigSource
Creates a new YAML config source.- Parameters:
input
- the input stream of the YAML file
-
-
Method Details
-
load
Description copied from interface:ConfigSource
Loads configuration data and returns it as aMap
.- Specified by:
load
in interfaceConfigSource
- Returns:
- a map with configuration keys and values
-