public class ConfigPreferences extends Object implements StorageChangedListener
Constructor and Description |
---|
ConfigPreferences(org.osgi.framework.Bundle bundle)
Get the storage service and add the current instance as change listener.
|
Modifier and Type | Method and Description |
---|---|
double |
getDouble(String id,
double defaultValue) |
int |
getInt(String id,
int defaultValue) |
File[] |
getOnlyFileChildren(String basedir) |
String |
getString(String id,
String defaultValue) |
List<Value> |
getValue(String id) |
Value |
getValue(String id,
Value defaultValue) |
void |
setStorage(ConfigurationInstancesStorage storage) |
void |
storageChanged() |
public ConfigPreferences(org.osgi.framework.Bundle bundle)
bundle
- is the bundle for which the configuration was defined.public Value getValue(String id, Value defaultValue)
id
- defaultValue
- public int getInt(String id, int defaultValue)
public double getDouble(String id, double defaultValue)
public void storageChanged()
storageChanged
in interface StorageChangedListener
public void setStorage(ConfigurationInstancesStorage storage)
Copyright © 2018 universAAL Consortium. All rights reserved.