public class InMemoryConfigReader extends Object implements ConfigReader
Constructor and Description |
---|
InMemoryConfigReader(String keyPrefix,
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)
ConfigReader
readConfig
in interface ConfigReader
name
- Name of the propertydefaultValue
- Default value for the propertypublic Map<String,String> getAllConfigs()
ConfigReader
getAllConfigs
in interface ConfigReader
Copyright © 2019. All rights reserved.