Interface ModulesConfigLoader

All Known Implementing Classes:
ModulesYamlConfigLoader

public interface ModulesConfigLoader
Author:
Vojtech Sassmann
  • Method Details

    • loadString

      String loadString(String moduleName, String property)
      For module with the given name, find a String configuration property with given name.
      Parameters:
      moduleName - name of a module
      property - name of a property
      Returns:
      found String property for given module
      Throws:
      ModulePropertyNotFoundException - when the specified property value is null or is not found or the specified module configuration is not found
    • loadStringOrDefault

      String loadStringOrDefault(String moduleName, String property, String defaultValue)
      For module with the given name, find a String configuration property with given name. If the module configuration does not contain the specified property, return the default value.
      Parameters:
      moduleName - name of a module
      property - name of a property
      defaultValue - default value
      Returns:
      found String property for given module, or default value if not found
      Throws:
      ModulePropertyNotFoundException - when the specified module configuration is not found
    • loadInteger

      Integer loadInteger(String moduleName, String property)
      For module with the given name, find an Integer configuration property with given name.
      Parameters:
      moduleName - name of a module
      property - name of a property
      Returns:
      found Integer property for given module
      Throws:
      ModulePropertyNotFoundException - when the specified property value is null or is not found or the specified module configuration is not found
    • loadIntegerOrDefault

      Integer loadIntegerOrDefault(String moduleName, String property, Integer defaultValue)
      For module with the given name, find an Integer configuration property with given name. If the module configuration does not contain the specified property, return the default value.
      Parameters:
      moduleName - name of a module
      property - name of a property
      defaultValue - default value
      Returns:
      found Integer property for given module, or default value if not found
      Throws:
      ModulePropertyNotFoundException - when the specified module configuration is not found
    • loadStringList

      List<String> loadStringList(String moduleName, String property)
      For module with the given name, find a list of Strings configuration property with given name.
      Parameters:
      moduleName - name of a module
      property - name of a property
      Returns:
      found list of Strings property for given module
      Throws:
      ModulePropertyNotFoundException - when the specified property value is null or is not found or the specified module configuration is not found
    • loadStringListOrDefault

      List<String> loadStringListOrDefault(String moduleName, String property, List<String> defaultValue)
      For module with the given name, find a list of Strings configuration property with given name. If the module configuration does not contain the specified property, return the default value.
      Parameters:
      moduleName - name of a module
      property - name of a property
      defaultValue - default value
      Returns:
      found list of Strings property for given module, or default value if not found
      Throws:
      ModulePropertyNotFoundException - when the specified module configuration is not found
    • loadIntegerList

      List<Integer> loadIntegerList(String moduleName, String property)
      For module with the given name, find a list of Integers configuration property with given name.
      Parameters:
      moduleName - name of a module
      property - name of a property
      Returns:
      found list of Integers property for given module
      Throws:
      ModulePropertyNotFoundException - when the specified property value is null or is not found or the specified module configuration is not found
    • loadIntegerListOrDefault

      List<Integer> loadIntegerListOrDefault(String moduleName, String property, List<Integer> defaultValue)
      For module with the given name, find a list of Integers configuration property with given name. If the module configuration does not contain the specified property, return the default value.
      Parameters:
      moduleName - name of a module
      property - name of a property
      defaultValue - default value
      Returns:
      found list of Integers property for given module, or default value if not found
      Throws:
      ModulePropertyNotFoundException - when the specified property value is null or is not found or the specified module configuration is not found