-
- All Known Implementing Classes:
YamlConfigReaderProvider
public interface ConfigReaderProviderProvider of a single type of config readers. Set up with creating the file:
And containing the class path of your provider, and to add the provider as provided in theMETA-INF/services/net.morimekta.config.readers.ConfigReaderProvidermodule-info.javaas such:provides net.morimekta.config.readers.ConfigReaderProvider with your.provider.ClassPath;
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <ConfigType>
Optional<ConfigReader<ConfigType>>getReaderFor(Class<ConfigType> type, Path file)Get a config reader for given type and file, if applicable.
-
-
-
Method Detail
-
getReaderFor
<ConfigType> Optional<ConfigReader<ConfigType>> getReaderFor(Class<ConfigType> type, Path file)
Get a config reader for given type and file, if applicable.- Type Parameters:
ConfigType- The config type.- Parameters:
type- The config type to get reader for.file- The file to get reader for.- Returns:
- The provided reader, or empty optional if not applicable.
-
-