Class ConfigLoader
- java.lang.Object
-
- com.ibm.fhir.term.graph.loader.util.ConfigLoader
-
public class ConfigLoader extends Object
This class will load a Configuration from a property file, then override parameters based on environment variables.
-
-
Field Summary
Fields Modifier and Type Field Description static String
INDEX_SEARCH_HOSTNAME
static String
INDEX_SEARCH_HOSTNAME_ENV
static String
INDEX_SEARCH_PORT
static String
INDEX_SEARCH_PORT_ENV
static String
STORAGE_DATACENTER
static String
STORAGE_DATACENTER_ENV
static String
STORAGE_HOSTNAME
static String
STORAGE_HOSTNAME_ENV
static String
STORAGE_PASSWORD
static String
STORAGE_PASSWORD_ENV
static String
STORAGE_PORT
static String
STORAGE_PORT_ENV
static String
STORAGE_USERNAME
static String
STORAGE_USERNAME_ENV
-
Constructor Summary
Constructors Constructor Description ConfigLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.commons.configuration2.Configuration
load(String propFileName)
-
-
-
Field Detail
-
STORAGE_DATACENTER
public static final String STORAGE_DATACENTER
- See Also:
- Constant Field Values
-
STORAGE_HOSTNAME
public static final String STORAGE_HOSTNAME
- See Also:
- Constant Field Values
-
STORAGE_PORT
public static final String STORAGE_PORT
- See Also:
- Constant Field Values
-
STORAGE_USERNAME
public static final String STORAGE_USERNAME
- See Also:
- Constant Field Values
-
STORAGE_PASSWORD
public static final String STORAGE_PASSWORD
- See Also:
- Constant Field Values
-
INDEX_SEARCH_HOSTNAME
public static final String INDEX_SEARCH_HOSTNAME
- See Also:
- Constant Field Values
-
INDEX_SEARCH_PORT
public static final String INDEX_SEARCH_PORT
- See Also:
- Constant Field Values
-
STORAGE_DATACENTER_ENV
public static final String STORAGE_DATACENTER_ENV
- See Also:
- Constant Field Values
-
STORAGE_HOSTNAME_ENV
public static final String STORAGE_HOSTNAME_ENV
-
STORAGE_PORT_ENV
public static final String STORAGE_PORT_ENV
-
STORAGE_USERNAME_ENV
public static final String STORAGE_USERNAME_ENV
-
STORAGE_PASSWORD_ENV
public static final String STORAGE_PASSWORD_ENV
-
INDEX_SEARCH_HOSTNAME_ENV
public static final String INDEX_SEARCH_HOSTNAME_ENV
-
INDEX_SEARCH_PORT_ENV
public static final String INDEX_SEARCH_PORT_ENV
-
-
Method Detail
-
load
public static final org.apache.commons.configuration2.Configuration load(String propFileName) throws org.apache.commons.configuration2.ex.ConfigurationException
- Throws:
org.apache.commons.configuration2.ex.ConfigurationException
-
-