public final class ConfigFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_TARGET_KEY
The selector configuration key that defines the active config storage implementation.
|
Modifier and Type | Method and Description |
---|---|
void |
defineSystemStorage(ConfigStorage storage)
Defines the system storage implementation that should be used.
|
void |
defineUserStorage(ConfigStorage storage)
Defines the user storage implementation that should be used.
|
static String |
encodePath(String path)
Encodes the given configuration path.
|
static ConfigFactory |
getInstance()
Returns the singleton instance of the config factory.
|
ConfigStorage |
getSystemStorage()
Returns the system settings storage implementation used in the config subsystem.
|
ConfigStorage |
getUserStorage()
Returns the user settings storage implementation used in the config subsystem.
|
static boolean |
isValidPath(String path)
Checks whether the given string denotes a valid config storage path.
|
public static final String CONFIG_TARGET_KEY
public static ConfigFactory getInstance()
public void defineUserStorage(ConfigStorage storage)
storage
- the user settings storage implementation.public void defineSystemStorage(ConfigStorage storage)
storage
- the system settings storage implementation.public ConfigStorage getUserStorage()
public ConfigStorage getSystemStorage()
public static boolean isValidPath(String path)
path
- the path that should be tested.Copyright © 2002–2017 Pentaho Corporation. All rights reserved.