public class ConfigurationFileStore extends Object implements ConfigurationStore
| Constructor and Description |
|---|
ConfigurationFileStore(String dirPath) |
| 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 store.
|
boolean |
readOnly() |
void |
saveConfiguration(ConfigBase config) |
public ConfigurationFileStore(String dirPath) throws ConfigException
dirPath - location of configConfigExceptionpublic boolean readOnly()
readOnly in interface ConfigurationStorepublic String getLocation() throws ConfigException
getLocation in interface ConfigurationStoreConfigExceptionpublic void saveConfiguration(ConfigBase config) throws ConfigException
saveConfiguration in interface ConfigurationStoreconfig - to saveConfigExceptionpublic ConfigBase getConfig(String name) throws ConfigException
ConfigurationStoregetConfig in interface ConfigurationStorename - of the objectConfigExceptionpublic ConfigBase getConfig(String name, Class cl) throws ConfigException
getConfig in interface ConfigurationStorename - of the objectcl - - class of config objectConfigExceptionpublic List<String> getConfigs() throws ConfigException
ConfigurationStoregetConfigs in interface ConfigurationStoreConfigExceptionpublic ConfigurationStore getStore(String name) throws ConfigException
getStore in interface ConfigurationStorename - of configConfigExceptionpublic ResourceBundle getResource(String name, String locale) throws ConfigException
getResource in interface ConfigurationStorename - of bundlelocale - null for default or a locale String e.g. en_USConfigExceptionCopyright © 2016 Bedework. All rights reserved.