public class NullConfigStorage extends Object implements ConfigStorage
Constructor and Description |
---|
NullConfigStorage()
DefaultConstructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public void store(String configPath, Configuration properties)
store
in interface ConfigStorage
configPath
- this parameter is not used.properties
- this parameter is not used.(java.lang.String,
java.util.Properties)
public Configuration load(String configPath, Configuration defaults) throws ConfigStoreException
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.public boolean isAvailable(String configPath)
isAvailable
in interface ConfigStorage
configPath
- the configuration path to the property storage.Copyright © 2002–2017 Pentaho Corporation. All rights reserved.