public class ConfigurationContextImpl extends Object implements ConfigurationContext
Helper class for enabling functional constructs with Configuration
s 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 ConfigurationContext
public String getFactoryPid()
getFactoryPid
in interface ConfigurationContext
public File getConfigFile()
getConfigFile
in interface ConfigurationContext
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.public Dictionary<String,Object> getSanitizedProperties()
getSanitizedProperties
in interface ConfigurationContext
public void setProperty(String key, Object value)
ConfigurationContext
setProperty
in interface ConfigurationContext
key
- 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.