public interface ConfigurationInstancesStorage
Modifier and Type | Method and Description |
---|---|
void |
addConfigurationInstance(ConfigurationInstance instance)
Adds the configuration instance and saves it to the physical storage.
|
void |
addListener(StorageChangedListener listener) |
boolean |
contains(ConfigurationInstance configInstance) |
List<ConfigurationInstance> |
getAllInstancesForBundle(String bundlename) |
ConfigurationInstance |
getConfigurationForBundle(org.osgi.framework.Bundle bundle) |
void |
loadInstances()
Loads the configuration instances from physical storage.
|
boolean |
removeConfigurationInstance(ConfigurationInstance instance)
Removes the given instance also from the physical storage
|
void |
removeListener(StorageChangedListener listener) |
void |
replaceConfigurationInstance(ConfigurationInstance instance)
Replace the instance with the same id.
|
void loadInstances()
void addConfigurationInstance(ConfigurationInstance instance)
instance
- void replaceConfigurationInstance(ConfigurationInstance instance)
instance
- boolean removeConfigurationInstance(ConfigurationInstance instance)
instance
- List<ConfigurationInstance> getAllInstancesForBundle(String bundlename)
bundlename
- boolean contains(ConfigurationInstance configInstance)
ConfigurationInstance getConfigurationForBundle(org.osgi.framework.Bundle bundle) throws NoConfigurationFoundException
bundle
- NoConfigurationFoundException
void addListener(StorageChangedListener listener)
void removeListener(StorageChangedListener listener)
Copyright © 2018 universAAL Consortium. All rights reserved.