public abstract class EurekaClinicalProperties extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
EurekaClinicalProperties(String defaultConfigDir)
Loads the application configuration.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConfigDir() |
String |
getDomainUrl()
A URL representing the domain in which Eureka Clinical is installed.
|
protected int |
getIntValue(String propertyName,
int defaultValue)
Utility method to get an int from the properties file.
|
String |
getStage() |
protected List<String> |
getStringListValue(String inPropertyName)
Reads in a property value as a whitespace-delimited list of items.
|
protected List<String> |
getStringListValue(String inPropertyName,
List<String> defaultValue)
Reads in a property value as a whitespace-delimited list of items.
|
abstract String |
getUrl() |
protected String |
getValue(String propertyName)
Returns the String value of the given property name.
|
protected String |
getValue(String propertyName,
String defaultValue)
Returns the String value of the given property name, or the given default
if the given property name does not exist.
|
protected EurekaClinicalProperties(String defaultConfigDir)
eureka.config.dir system property allows specifying an
alternative configuration directory.defaultConfigDir - the default location of configuration file, based
on the operating system. Cannot be null.public String getConfigDir()
public String getStage()
public String getDomainUrl()
public abstract String getUrl()
protected final String getValue(String propertyName)
propertyName - The property name to fetch the value for.protected final String getValue(String propertyName, String defaultValue)
propertyName - The name of the property to fetch a value for.defaultValue - The default value to return if the property name does
not exist.protected final List<String> getStringListValue(String inPropertyName)
inPropertyName - The name of the property to read.null if
the property is not found.protected final List<String> getStringListValue(String inPropertyName, List<String> defaultValue)
inPropertyName - The name of the property to read.defaultValue - The value to return if the property is not found.protected final int getIntValue(String propertyName, int defaultValue)
propertyName - The name of the property.defaultValue - The default value to return, if the property is not
found, or is malformed.Copyright © 2016–2018 Emory University. All rights reserved.