|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.utils.config.ConfigUtils
public final class ConfigUtils
Helper class to load configs from these locations:
The central config folder is determined in this order from the first non-blank location (the last will always succeed!)
‑Dorg.eclipse.smila.utils.config.root=<path> org.eclipse.smila.utils.config.root=<path> <org.eclipse.core.runtime.Platform.getInstallLocation()>/configuration.
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTY_CONFIG_ROOT
The Constant PROPERTY_CONFIG_ROOT. |
| Method Summary | |
|---|---|
static java.util.List<java.lang.String> |
getConfigEntries(java.lang.String bundleName,
java.lang.String configPath)
Gets the configuration stream. |
static java.io.File |
getConfigFolder(java.lang.String bundleName,
java.lang.String configPath)
Gets the configuration folder. |
static java.io.InputStream |
getConfigStream(java.lang.String bundleName,
java.lang.String configPath)
Gets the configuration stream. |
static java.io.InputStream |
getConfigStream(java.lang.String bundleName,
java.lang.String configPath,
java.lang.String defaultConfigPath)
Gets the configuration stream. |
static java.io.File |
getConfigurationFolder()
Gets the configuration folder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_CONFIG_ROOT
| Method Detail |
|---|
public static java.io.InputStream getConfigStream(java.lang.String bundleName,
java.lang.String configPath,
java.lang.String defaultConfigPath)
bundleName - the bundle nameconfigPath - the config namedefaultConfigPath - the default config name
public static java.io.File getConfigFolder(java.lang.String bundleName,
java.lang.String configPath)
bundleName - the bundle nameconfigPath - the configuration name
public static java.io.InputStream getConfigStream(java.lang.String bundleName,
java.lang.String configPath)
bundleName - the bundle nameconfigPath - the configuration path
public static java.util.List<java.lang.String> getConfigEntries(java.lang.String bundleName,
java.lang.String configPath)
bundleName - the bundle nameconfigPath - the config name
public static java.io.File getConfigurationFolder()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||