org.jfree.report.modules.preferences.base
Interface ConfigStorage
- FileConfigStorage, NullConfigStorage
Config storage implementations are used to store a set of properties to a certain key.
A valid configuration path does not contain dots, semicolons or colons.
A valid path obeys to the same rules as java identifiers ..
boolean | isAvailable(String configPath) - Tests, whether some configuration data exists for the given configuration.
|
Configuration | load(String configPath, Configuration defaults) - Loads the properties from the given path, specifying the given properties as
default.
|
void | store(String configPath, Configuration properties) - Stores the given properties on the defined path.
|
isAvailable
public boolean isAvailable(String configPath)
Tests, whether some configuration data exists for the given configuration.
configPath
- the configuration path to the property storage.
- true, if there are properties under this path, false otherwise.
load
public Configuration load(String configPath,
Configuration defaults)
throws ConfigStoreException
Loads the properties from the given path, specifying the given properties as
default.
configPath
- the configuration path from where to read the properties.defaults
- the property set that acts as fallback to provide default values.
store
public void store(String configPath,
Configuration properties)
throws ConfigStoreException
Stores the given properties on the defined path.
configPath
- the path on where to store the properties.properties
- the properties which should be stored.