public class ConfigUtil extends Object
| Constructor and Description |
|---|
ConfigUtil() |
| Modifier and Type | Method and Description |
|---|---|
static URI |
getNihmsRepositoryUri()
Retrieves the NIHMS Repository URI based on property key
|
static String |
getSystemProperty(String key,
String defaultValue)
Retrieve property from a system property or renvironment variable or set to default
|
static Properties |
loadProperties(File propertiesFile)
This method processes a plain text properties file and returns a
Properties object |
public static String getSystemProperty(String key, String defaultValue)
Given a string as a system property name (and a default) will:
key - - property/variable name in property-normal form (period separators, ideally all lowercas)defaultValue - default value for the key if it does not exist as a system property or environment variablepublic static URI getNihmsRepositoryUri()
public static Properties loadProperties(File propertiesFile)
Properties objectpropertiesFile - - the properties File to be readFileCopyright © 2019. All rights reserved.