Top Description Methods
org.osgi.service.prefs

public Interface PreferencesService


The Preferences Service.

Each bundle using this service has its own set of preference trees: one for system preferences, and one for each user.

A PreferencesService object is specific to the bundle which obtained it from the service registry. If a bundle wishes to allow another bundle to access its preferences, it should pass its PreferencesService object to that bundle.

Author
$Id: c7fc6eb2fc4c8b796a5ba3ef340f0881825e8dd5 $

Method Summary

Modifier and TypeMethod and Description
public Preferences

Returns:

The root system node for the calling bundle.
getSystemPreferences
()

Returns the root system node for the calling bundle.

public Preferences

Returns:

The root node for the specified user and the calling bundle.
getUserPreferences
(String
The user for which to return the preference root node.
name
)

Returns the root node for the specified user and the calling bundle.

public String[]

Returns:

The names of users for which node trees exist.
getUsers
()

Returns the names of users for which node trees exist.

Method Detail

getSystemPreferencesback to summary
public Preferences getSystemPreferences()

Returns the root system node for the calling bundle.

Returns:Preferences

The root system node for the calling bundle.

getUserPreferencesback to summary
public Preferences getUserPreferences(String name)

Returns the root node for the specified user and the calling bundle.

Parameters
name:String

The user for which to return the preference root node.

Returns:Preferences

The root node for the specified user and the calling bundle.

getUsersback to summary
public String[] getUsers()

Returns the names of users for which node trees exist.

Returns:String[]

The names of users for which node trees exist.