public interface ConfigurationContext
ConfigurationContext
is to provide an abstraction for the oddities of
Apache Felix, and isolate only a single place where an implementation may need to change when
upgrading versions of Karaf.Modifier and Type | Method and Description |
---|---|
File |
getConfigFile() |
String |
getFactoryPid() |
Dictionary<String,Object> |
getSanitizedProperties() |
String |
getServicePid() |
void |
setProperty(String key,
Object value)
Provides a mechanism to add or change property values on the internal felix map to be persisted
without going back through the config admin service.
|
String getServicePid()
@Nullable String getFactoryPid()
@Nullable File getConfigFile()
File
in the etc
directory that defines this config if and only if the
config was created by the Felix directory watcher. Returns null
otherwise.Dictionary<String,Object> getSanitizedProperties()
void setProperty(String key, Object value)
key
- the key of the property to add or change.value
- the intended new value for the specified property to hold.This work is licensed under a Creative Commons Attribution 4.0 International License.