Class 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 Detail

      • 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.