Class BootstrapIniSettings

java.lang.Object
nz.org.riskscape.config.BootstrapIniSettings

public class BootstrapIniSettings extends Object

Used to load minimal INI config settings, whilst the engine is still bootstrapping, i.e. we don't have any BindingContext available yet. Loading RiskScape's settings.ini file is one example, as this needs to be done first, before any project.ini is loaded.

  • Constructor Details

    • BootstrapIniSettings

      public BootstrapIniSettings(Map<String,List<String>> unbound, nz.org.riskscape.problem.ProblemSink sink)
  • Method Details

    • getOrDefault

      public <T extends Number> T getOrDefault(String parameterName, T defaultValue)

      Extracts a single, numeric value from the settings.ini config for the given parameter

    • getOrDefault

      public boolean getOrDefault(String parameterName, boolean defaultValue)

      Extracts a single, boolean value from the settings.ini config for the given parameter

    • getUnbound

      public Map<String,List<String>> getUnbound()