-
- Type Parameters:
ConfigType- The config type.
- All Known Implementing Classes:
YamlConfigReader
public interface ConfigReader<ConfigType>A interface to load config files from disk and parse into the specified config type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigTypereadConfig(Path file)
-
-
-
Method Detail
-
readConfig
ConfigType readConfig(Path file) throws IOException, ConfigException
- Parameters:
file- File path to load config from.- Returns:
- The loaded config file.
- Throws:
ConfigException- If parsing file failed.IOException- If reading the config file failed.
-
-