Interface Configuration

All Superinterfaces:
Serializable

public interface Configuration extends 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 Type
    Method
    Description
    get(String key)
    Deprecated.
    Returns the object previously stored and associated with the key, or null if no mapping exists between the key and an object.
    Deprecated.
    Returns all entries in this configuration as a key-value map.
    Deprecated.
    Returns a unique name for this configuration.
    boolean
    Deprecated.
    Returns true if this configuration does not contain any key-value pairs.
    void
    put(String key, Object value)
    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
    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

      Object get(String key)
      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

      Object remove(String key)
      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

      void put(String key, Object value)
      Deprecated.
      Associates a key with a value.
      Parameters:
      key - The key to associate with the value.
      value - The value to be retrieved for get(key).
    • getAll

      Map<String,Object> 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.