public class ConfigProcessor extends Object
Constructor and Description |
---|
ConfigProcessor() |
Modifier and Type | Method and Description |
---|---|
static BConfig |
processConfiguration(Map<String,String> runtimeParams,
String userProvidedConfigFile,
Path ballerinaConfDefaultPath)
Processes runtime, environment and config file properties.This populates configRegistry with configs based on
the following precedence order.
|
public static BConfig processConfiguration(Map<String,String> runtimeParams, String userProvidedConfigFile, Path ballerinaConfDefaultPath) throws IOException
runtimeParams
- The -B params passed to the BVM as CLI parametersuserProvidedConfigFile
- The config file provided through the --config CLI parameterballerinaConfDefaultPath
- The default config file (ballerina.conf) located at the source rootIOException
- Thrown if there was an error while attempting to process the config fileCopyright © 2018 WSO2. All rights reserved.