public interface ConfigStorage
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)
Stores the given properties on the defined path.
|
void store(String configPath, Configuration properties) throws ConfigStoreException
configPath
- the path on where to store the properties.properties
- the properties which should be stored.ConfigStoreException
- if an error occured.Configuration load(String configPath, Configuration defaults) throws ConfigStoreException
configPath
- the configuration path from where to read the properties.defaults
- the property set that acts as fallback to provide default values.ConfigStoreException
- if an error occured.boolean isAvailable(String configPath)
configPath
- the configuration path to the property storage.Copyright © 2017 Hitachi Vantara. All rights reserved.