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 StringINDEX_SEARCH_HOSTNAMEstatic StringINDEX_SEARCH_HOSTNAME_ENVstatic StringINDEX_SEARCH_PORTstatic StringINDEX_SEARCH_PORT_ENVstatic StringSTORAGE_DATACENTERstatic StringSTORAGE_DATACENTER_ENVstatic StringSTORAGE_HOSTNAMEstatic StringSTORAGE_HOSTNAME_ENVstatic StringSTORAGE_PASSWORDstatic StringSTORAGE_PASSWORD_ENVstatic StringSTORAGE_PORTstatic StringSTORAGE_PORT_ENVstatic StringSTORAGE_USERNAMEstatic StringSTORAGE_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.Configurationload(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
-
-