public class YAMLConfigReader extends Object implements ConfigReader
| Constructor and Description |
|---|
YAMLConfigReader(Map<String,String> configs) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAllConfigs()
Return all the configurations in the config reader
|
String |
readConfig(String name,
String defaultValue)
Returns the value of the system property if set else the default value is returned
|
public String readConfig(String name, String defaultValue)
ConfigReaderreadConfig in interface ConfigReadername - Name of the propertydefaultValue - Default value for the propertypublic Map<String,String> getAllConfigs()
ConfigReadergetAllConfigs in interface ConfigReaderCopyright © 2020. All rights reserved.