public class ConfigUtil extends Object
Constructor and Description |
---|
ConfigUtil() |
Modifier and Type | Method and Description |
---|---|
MerchantConfig |
getProperties(String file)
Reads the input property file and returns a HashMap of keys with their corresponding values.
|
MerchantConfig |
validateConfigProps(MerchantConfig config)
Validated the input HashMap of configuration data based on the type of context.
|
public MerchantConfig getProperties(String file) throws BIDException
file
- String pointing to the configuration file to read/loadBIDException
- If the input file does not exist or is malformed (unreadable)public MerchantConfig validateConfigProps(MerchantConfig config) throws BIDException
config
- HashMap Confugration properties and valuesBIDException
- If a property is invalid or missingCopyright © 2017 Nets Branch Norway. All Rights Reserved.