Package org.bridgedb.utils
Class ConfigReader
- java.lang.Object
-
- org.bridgedb.utils.ConfigReader
-
public class ConfigReader extends Object
- Author:
- Christian
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_FILE_NAMEstatic StringCONFIG_FILE_PATH_PROPERTYstatic StringCONFIG_FILE_PATH_SOURCE_PROPERTYstatic StringLOCAL_FILE_NAMEstatic StringLOG_PROPERTIES_FILEprotected static booleanloggerSetupprotected static booleanuseTest
-
Constructor Summary
Constructors Modifier Constructor Description protectedConfigReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconfigureLogger()static InputStreamgetInputStream(String fileName)static PropertiesgetProperties()static PropertiesgetProperties(String fileName)static StringgetProperty(String propertyName)static booleaninTestMode()static voidlogToConsole()static voiduseTest()
-
-
-
Field Detail
-
CONFIG_FILE_NAME
public static final String CONFIG_FILE_NAME
- See Also:
- Constant Field Values
-
LOCAL_FILE_NAME
public static final String LOCAL_FILE_NAME
- See Also:
- Constant Field Values
-
LOG_PROPERTIES_FILE
public static final String LOG_PROPERTIES_FILE
- See Also:
- Constant Field Values
-
CONFIG_FILE_PATH_PROPERTY
public static final String CONFIG_FILE_PATH_PROPERTY
- See Also:
- Constant Field Values
-
CONFIG_FILE_PATH_SOURCE_PROPERTY
public static final String CONFIG_FILE_PATH_SOURCE_PROPERTY
- See Also:
- Constant Field Values
-
useTest
protected static boolean useTest
-
loggerSetup
protected static boolean loggerSetup
-
-
Method Detail
-
getProperties
public static Properties getProperties() throws BridgeDBException
- Throws:
BridgeDBException
-
getProperties
public static Properties getProperties(String fileName) throws BridgeDBException
- Throws:
BridgeDBException
-
getInputStream
public static InputStream getInputStream(String fileName) throws BridgeDBException
- Throws:
BridgeDBException
-
configureLogger
public static void configureLogger() throws BridgeDBException- Throws:
BridgeDBException
-
logToConsole
public static void logToConsole() throws BridgeDBException- Throws:
BridgeDBException
-
getProperty
public static String getProperty(String propertyName) throws BridgeDBException
- Throws:
BridgeDBException
-
useTest
public static void useTest()
-
inTestMode
public static boolean inTestMode()
-
-