Class PreferencesServiceImpl

java.lang.Object
org.apache.felix.prefs.impl.PreferencesServiceImpl
All Implemented Interfaces:
org.osgi.service.prefs.PreferencesService

public class PreferencesServiceImpl extends Object implements org.osgi.service.prefs.PreferencesService
This is an implementation of the OSGI Preferences Service, Version 1.1.
  • Field Details

    • systemTree

      protected PreferencesImpl systemTree
      This is the system preferences tree.
    • trees

      protected final Map<String,PreferencesImpl> trees
      This is the map containing the user preferences trees.
    • bundleId

      protected final Long bundleId
      The service id for the bundle this service belongs to.
    • storeManager

      protected final BackingStoreManager storeManager
      The backing store manager.
  • Constructor Details

  • Method Details

    • getSystemPreferences

      public org.osgi.service.prefs.Preferences getSystemPreferences()
      Specified by:
      getSystemPreferences in interface org.osgi.service.prefs.PreferencesService
      See Also:
      • PreferencesService.getSystemPreferences()
    • getUserPreferences

      public org.osgi.service.prefs.Preferences getUserPreferences(String name)
      Specified by:
      getUserPreferences in interface org.osgi.service.prefs.PreferencesService
      See Also:
      • PreferencesService.getUserPreferences(java.lang.String)
    • getUsers

      public String[] getUsers()
      Specified by:
      getUsers in interface org.osgi.service.prefs.PreferencesService
      See Also:
      • PreferencesService.getUsers()
    • getAllPreferences

      protected List<PreferencesImpl> getAllPreferences()