Interface Configuration
- All Superinterfaces:
Serializable
Deprecated.
Use org.osgi.service.cm.ConfigurationAdmin
Essentially a map.
Do not create implementations that puts arbitrary objects as values in a
configuration. Only put values of classes that is available in J2SE 1.6.
This is because all other classes must be instantiated by the
extension framework when the configuration is requested from the
configuration store. An instantiation can only occur when a suitable
class loader can be found. That class loader is in your bundle and the
extension framework does not import from it and hence has no suitable
class loader.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the object previously stored and associated with the key, or null if no mapping exists between the key and an object.getAll()
Deprecated.Returns all entries in this configuration as a key-value map.Deprecated.Returns a unique name for this configuration.boolean
isEmpty()
Deprecated.Returns true if this configuration does not contain any key-value pairs.void
Deprecated.Associates a key with a value.Deprecated.Removes the object associated with the key and returns that object or null if no such object could be found.int
size()
Deprecated.Returns the number of keys (and hence the number of values) in this configuration.
-
Method Details
-
getConfigurationName
String getConfigurationName()Deprecated.Returns a unique name for this configuration. The name is used to distinguish between different plugins.- Returns:
- A unique name for the configuration. May not be in a presentable format.
-
get
Deprecated.Returns the object previously stored and associated with the key, or null if no mapping exists between the key and an object.- Parameters:
key
- The key that i associated with an object.- Returns:
- The object associated with key, or null if no such object exists.
-
remove
Deprecated.Removes the object associated with the key and returns that object or null if no such object could be found. This method guarantees that the key is not associated with any object after execution.- Parameters:
key
- The key that i associated with an object.- Returns:
- The removed object or null if no object was associated with the key.
-
put
Deprecated.Associates a key with a value.- Parameters:
key
- The key to associate with the value.value
- The value to be retrieved forget(key)
.
-
getAll
Deprecated.Returns all entries in this configuration as a key-value map.- Returns:
- all entries in this configuration as a key-value map.
-
isEmpty
boolean isEmpty()Deprecated.Returns true if this configuration does not contain any key-value pairs.- Returns:
- true if this configuration does not contain any key-value pairs.
-
size
int size()Deprecated.Returns the number of keys (and hence the number of values) in this configuration.- Returns:
- the number of keys (and hence the number of values) in this configuration.
-