public abstract class AbstractConfigParser extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
COMMENT_OR_WS_FORMAT |
protected static String |
CONFIG_KEY_FORMAT |
protected Map<String,String> |
globalConfigs |
protected static String |
INSTANCE_ID_FORMAT |
protected Map<String,Map<String,String>> |
instanceConfigs |
protected static String |
VARIABLE_FORMAT |
protected static Pattern |
VARIABLE_PATTERN |
Constructor and Description |
---|
AbstractConfigParser() |
Modifier and Type | Method and Description |
---|---|
protected String |
extractInstanceId(String id)
Extracts the instance ID from a instance tag (i.e: [http1]).
|
Map<String,String> |
getGlobalConfigs()
Returns the parsed global configurations as a map.
|
Map<String,Map<String,String>> |
getInstanceConfigs()
Returns the parsed instance level configurations as a map.
|
protected String |
parseConfigValue(String value)
This method takes the value of a Ballerina configuration key/value pair and processes it to replace any system or
environment variables present.
|
protected static final String CONFIG_KEY_FORMAT
protected static final String INSTANCE_ID_FORMAT
protected static final String COMMENT_OR_WS_FORMAT
protected static final String VARIABLE_FORMAT
protected static final Pattern VARIABLE_PATTERN
public Map<String,String> getGlobalConfigs()
public Map<String,Map<String,String>> getInstanceConfigs()
protected String parseConfigValue(String value)
value
- The value portion of a config entry to be parsedCopyright © 2018 WSO2. All rights reserved.