Class YamlConfigReader<ConfigType>

java.lang.Object
net.morimekta.config.readers.YamlConfigReader<ConfigType>
Type Parameters:
ConfigType - The config type.
All Implemented Interfaces:
ConfigReader<ConfigType>

public class YamlConfigReader<ConfigType> extends Object implements ConfigReader<ConfigType>
Read config as YAML.
  • Constructor Details

    • YamlConfigReader

      public YamlConfigReader(Class<ConfigType> configType)
      Parameters:
      configType - The config type class.
    • YamlConfigReader

      public YamlConfigReader(Class<ConfigType> configType, Consumer<com.fasterxml.jackson.databind.ObjectMapper> init)
      Parameters:
      configType - The config type class.
      init - A consumer callback to initialize the object mapper. E.g. if extra modules needs to be loaded.
  • Method Details