org.apache.felix.prefs.impl
Class PreferencesServiceImpl

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

public class PreferencesServiceImpl
extends java.lang.Object
implements org.osgi.service.prefs.PreferencesService

This is an implementation of the OSGI Preferences Service, Version 1.1.


Field Summary
protected  java.lang.Long bundleId
          The service id for the bundle this service belongs to.
protected  BackingStoreManager storeManager
          The backing store manager.
protected  PreferencesImpl systemTree
          This is the system preferences tree.
protected  java.util.Map trees
          This is the map containing the user preferences trees.
 
Constructor Summary
PreferencesServiceImpl(java.lang.Long id, BackingStoreManager storeManager)
           
 
Method Summary
protected  java.util.List getAllPreferences()
           
 org.osgi.service.prefs.Preferences getSystemPreferences()
           
 org.osgi.service.prefs.Preferences getUserPreferences(java.lang.String name)
           
 java.lang.String[] getUsers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

systemTree

protected PreferencesImpl systemTree
This is the system preferences tree.


trees

protected final java.util.Map trees
This is the map containing the user preferences trees.


bundleId

protected final java.lang.Long bundleId
The service id for the bundle this service belongs to.


storeManager

protected final BackingStoreManager storeManager
The backing store manager.

Constructor Detail

PreferencesServiceImpl

public PreferencesServiceImpl(java.lang.Long id,
                              BackingStoreManager storeManager)
Method Detail

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(java.lang.String name)
Specified by:
getUserPreferences in interface org.osgi.service.prefs.PreferencesService
See Also:
PreferencesService.getUserPreferences(java.lang.String)

getUsers

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

getAllPreferences

protected java.util.List getAllPreferences()