Package org.codice.felix.cm.file
Class ConfigurationContextImpl
java.lang.Object
org.codice.felix.cm.file.ConfigurationContextImpl
- All Implemented Interfaces:
org.codice.felix.cm.internal.ConfigurationContext
public class ConfigurationContextImpl
extends Object
implements org.codice.felix.cm.internal.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:
- There was no dictionary of properties associated with the config
- There was no felix.fileinstall.filename property
- The felix.fileinstall.filename property was invalid
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationContextImpl(String pid, Dictionary<String, Object> props) ConfigurationContextImpl(org.osgi.service.cm.Configuration config) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidsetProperty(String key, Object value) boolean
-
Constructor Details
-
ConfigurationContextImpl
public ConfigurationContextImpl(org.osgi.service.cm.Configuration config) -
ConfigurationContextImpl
-
-
Method Details
-
getServicePid
- Specified by:
getServicePidin interfaceorg.codice.felix.cm.internal.ConfigurationContext
-
getFactoryPid
- Specified by:
getFactoryPidin interfaceorg.codice.felix.cm.internal.ConfigurationContext
-
getFactoryServiceName
- Specified by:
getFactoryServiceNamein interfaceorg.codice.felix.cm.internal.ConfigurationContext
-
getConfigFile
- Specified by:
getConfigFilein interfaceorg.codice.felix.cm.internal.ConfigurationContext
-
getSanitizedProperties
- Specified by:
getSanitizedPropertiesin interfaceorg.codice.felix.cm.internal.ConfigurationContext
-
setProperty
- Specified by:
setPropertyin interfaceorg.codice.felix.cm.internal.ConfigurationContext
-
shouldBeVisibleToPlugins
public boolean shouldBeVisibleToPlugins() -
equals
-
hashCode
public int hashCode()
-