Config reader that reads a configuration from a file.
Extends: ConfigReader
Description
The FileConfigReader class allows you to create a config reader that reads a configuration from a file.
Configuration parameters
- path: path to a configuration file
- parameters: this entire section is used as template parameters
- …
Constructors
Creates a new instance of the config reader.
FileConfigReader([String? path])
- path: String? - (optional) path to a configuration file.
Instance methods
configure
Configures a component by passing its configuration parameters.
@override
void configure(ConfigParams config)
- config: ConfigParams - configuration parameters to be set.
getPath
Gets the path to a configuration file.
String? getPath()
- returns: String? - path to the configuration file.
setPath
Sets the path to a configuration file.
void setPath(String path)
- path: String - new path to the configuration file.