The Configuration Class represents the main Configuration settings for the application.
Loading settings from the environment, command line arguments, and Configuration files.
This class offers both get and set methods to these settings.
If a setting doesn't exist it will be created when set.
It also provides a getObservable method for retrieving setting Observables that can be subscribed to.
Example
//import the Configuration class as Configuration importConfigurationfrom"../src/Instance/Configuration"; //get current value constversion = Configuration.get("version"); //get observable for setting constportObservable = Configuration.getObservable("https.port"); //set the https port setting Configuration.set("https.port", 443)
Remarks
In the example, the Configuration class is imported as "Configuration". The current value of the version setting is retrieved using get().
An observable for the "https.port" setting is retrieved using getObservable().
The Configuration class is then used to set the "https.port" to 443.
Gets the value of the specified setting in order of the Balek Configuration Map,
Command Line Arguments Map, Package Configuration Map, or Environment Variables Map.
The Configuration Class represents the main Configuration settings for the application.
Loading settings from the environment, command line arguments, and Configuration files.
This class offers both get and set methods to these settings.
If a setting doesn't exist it will be created when set.
It also provides a getObservable method for retrieving setting Observables that can be subscribed to.
Example
Remarks
In the example, the Configuration class is imported as "Configuration". The current value of the version setting is retrieved using get(). An observable for the "https.port" setting is retrieved using getObservable(). The Configuration class is then used to set the "https.port" to 443.