public class ConfigurationContextImpl extends Object implements ConfigurationContext
Helper class for enabling functional constructs with Configurations and exposes the
felix.fileinstall.filename property, if it exists, as a File.
Reasons a getConfigFile() call would return null:
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
File |
getConfigFile() |
String |
getFactoryPid() |
Dictionary<String,Object> |
getSanitizedProperties() |
String |
getServicePid() |
int |
hashCode() |
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.
|
boolean |
shouldBeVisibleToPlugins() |
public String getServicePid()
getServicePid in interface ConfigurationContextpublic String getFactoryPid()
getFactoryPid in interface ConfigurationContextpublic File getConfigFile()
getConfigFile in interface ConfigurationContextFile in the etc directory that defines this config if and only if the
config was created by the Felix directory watcher. Returns null otherwise.public Dictionary<String,Object> getSanitizedProperties()
getSanitizedProperties in interface ConfigurationContextpublic void setProperty(String key, Object value)
ConfigurationContextsetProperty in interface ConfigurationContextkey - the key of the property to add or change.value - the intended new value for the specified property to hold.public boolean shouldBeVisibleToPlugins()
This work is licensed under a Creative Commons Attribution 4.0 International License.