public class RuntimeConfiguration extends AbstractionConfiguration
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_LOCALE |
static String |
RUNTIME |
| Constructor and Description |
|---|
RuntimeConfiguration(String applicationName,
String environment,
Map<String,String> configurationValues,
File configPathF,
File dataPathF,
File tempPathF) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationName() |
File |
getConfigFile(String context,
String fileName,
boolean checkExists)
Returns the file in the config directory of the root of the application
|
File |
getConfigPath() |
File |
getDataDir(String context,
String dirName,
boolean checkExists)
Returns the directory in the data directory of the root of the application
|
File |
getDataFile(String context,
String fileName,
boolean checkExists)
Returns the file in the data directory of the root of the application
|
File |
getDataPath() |
String |
getEnvironment() |
Locale |
getLocale() |
File |
getTempPath() |
getAsMap, getAsProperties, getBoolean, getConfigFile, getDataDir, getDataFile, getInt, getLong, getName, getPropertyKeys, getString, getStringArray, hasPropertypublic static final String PROP_LOCALE
public static final String RUNTIME
public String getApplicationName()
public String getEnvironment()
public File getTempPath()
public File getConfigPath()
public File getDataPath()
public Locale getLocale()
public File getConfigFile(String context, String fileName, boolean checkExists)
context - short name to define who requires this file for error handlingfileName - the relative name of the config file to returncheckExists - if true, then an exception is thrown, using the context as info, if the config file does not existpublic File getDataFile(String context, String fileName, boolean checkExists)
context - short name to define who requires this file for error handlingfileName - the relative name of the data file to returncheckExists - if true, then an exception is thrown, using the context as info, if the data file does not existpublic File getDataDir(String context, String dirName, boolean checkExists)
context - short name to define who requires this directory for error handlingdirName - the relative name of the data directory to returncheckExists - if true, then an exception is thrown, using the context as info, if the data directory does not existCopyright © 2011–2016 Strolch. All rights reserved.