org.jfree.report.modules.preferences.base
Class NullConfigStorage
java.lang.Object
org.jfree.report.modules.preferences.base.NullConfigStorage
- ConfigStorage
An empty default implementation. This config storare will not store any values and will
provide no read access to stored properties by denying their existence.
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) - This method does nothing.
|
isAvailable
public boolean isAvailable(String configPath)
Tests, whether some configuration data exists for the given configuration.
This method returns always false and denies the existence of any resource.
- isAvailable in interface ConfigStorage
configPath
- the configuration path to the property storage.
- always false as this implementation does not store anything.
load
public Configuration load(String configPath,
Configuration defaults)
throws ConfigStoreException
Loads the properties from the given path, specifying the given properties as
default.
This implementation will always throw and ConfigStoreException as the specified
resource is not available.
- load in interface ConfigStorage
configPath
- the configuration path from where to read the properties.defaults
- the property set that acts as fallback to provide default values.
ConfigStoreException
- always throws this exception as the specified resource
will be not available.
store
public void store(String configPath,
Configuration properties)
This method does nothing.
- store in interface ConfigStorage
configPath
- this parameter is not used.properties
- this parameter is not used.
(java.lang.String, java.util.Properties)