public interface ConfigurationStore
In addition it may contain sub-stores.
Not surprisingly this looks like a file system with one file per config and directories representing the stores.
A store may be read-only or read-write. If read-write it may require credentials.
| Modifier and Type | Method and Description |
|---|---|
ConfigBase |
getConfig(String name)
Stored config must indicate class of object as an attribute
|
ConfigBase |
getConfig(String name,
Class cl) |
List<String> |
getConfigs()
List the configurations in the store
|
String |
getLocation() |
ResourceBundle |
getResource(String name,
String locale) |
ConfigurationStore |
getStore(String name)
Get the named child store.
|
boolean |
readOnly() |
void |
saveConfiguration(ConfigBase config) |
boolean readOnly()
String getLocation() throws ConfigException
ConfigExceptionvoid saveConfiguration(ConfigBase config) throws ConfigException
config - to saveConfigExceptionConfigBase getConfig(String name) throws ConfigException
name - of the objectConfigExceptionConfigBase getConfig(String name, Class cl) throws ConfigException
name - of the objectcl - - class of config objectConfigExceptionList<String> getConfigs() throws ConfigException
ConfigExceptionConfigurationStore getStore(String name) throws ConfigException
name - of the storeConfigExceptionResourceBundle getResource(String name, String locale) throws ConfigException
name - of bundlelocale - null for default or a locale String e.g. en_USConfigExceptionCopyright © 2016 Bedework. All rights reserved.