public class ConfigProcessor extends Object
Constructor and Description |
---|
ConfigProcessor(ConfigRegistry configRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
processConfiguration()
Processes runtime, environment and config file properties.This populates configRegistry with configs based on
the following precedence order.
|
void |
setBallerinaConfDefaultPath(Path path)
Sets the given path as the path of the default ballerina.conf file.
|
void |
setRuntimeConfiguration(Map<String,String> params)
Sets runtime config properties gathered from user as a map.
|
public ConfigProcessor(ConfigRegistry configRegistry)
public void setRuntimeConfiguration(Map<String,String> params)
params
- The Ballerina runtime parameters (i.e: -B params)public void setBallerinaConfDefaultPath(Path path)
path
- The default path for ballerina.conf - i.e: {SOURCE_ROOT}/ballerina.confpublic void processConfiguration() throws ConfigFileParserException
ConfigFileParserException
- if an error occur while parsing the fileCopyright © 2018 WSO2. All rights reserved.