public class OSGiPreferencesServiceImpl extends java.lang.Object implements PreferencesService
Implements OSGi PreferencesService using the Eclipse preference system.
Note: Eclipse preferences are accessible through the OSGi Preferences API and vice versa.
| Modifier and Type | Method and Description |
|---|---|
Preferences |
getSystemPreferences()
Returns the root system node for the calling bundle.
|
Preferences |
getUserPreferences(java.lang.String name)
Returns the root node for the specified user and the calling bundle.
|
java.lang.String[] |
getUsers()
Returns the names of users for which node trees exist.
|
public Preferences getSystemPreferences()
PreferencesServicegetSystemPreferences in interface PreferencesServicepublic Preferences getUserPreferences(java.lang.String name)
PreferencesServicegetUserPreferences in interface PreferencesServicename - The user for which to return the preference root node.public java.lang.String[] getUsers()
PreferencesServicegetUsers in interface PreferencesService