Package nz.org.riskscape.config
Class BootstrapIniSettings
java.lang.Object
nz.org.riskscape.config.BootstrapIniSettings
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 Summary
ConstructorDescriptionBootstrapIniSettings
(Map<String, List<String>> unbound, nz.org.riskscape.problem.ProblemSink sink) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getOrDefault
(String parameterName, boolean defaultValue) Extracts a single, boolean value from the settings.ini config for the given parameter<T extends Number>
TgetOrDefault
(String parameterName, T defaultValue) Extracts a single, numeric value from the settings.ini config for the given parameter
-
Constructor Details
-
BootstrapIniSettings
-
-
Method Details
-
getOrDefault
Extracts a single, numeric value from the settings.ini config for the given parameter
-
getOrDefault
Extracts a single, boolean value from the settings.ini config for the given parameter
-
getUnbound
-