Class YAMLConfigReader

    • Constructor Detail

      • YAMLConfigReader

        public YAMLConfigReader​(Map<String,​String> configs)
    • Method Detail

      • readConfig

        public String readConfig​(String name,
                                 String defaultValue)
        Description copied from interface: ConfigReader
        Returns the value of the system property if set else the default value is returned
        Specified by:
        readConfig in interface ConfigReader
        Parameters:
        name - Name of the property
        defaultValue - Default value for the property
        Returns:
        Value of the system property
      • getAllConfigs

        public Map<String,​String> getAllConfigs()
        Description copied from interface: ConfigReader
        Return all the configurations in the config reader
        Specified by:
        getAllConfigs in interface ConfigReader
        Returns:
        Hashmap of properties and values