Overview | Package | Class | Tree | Serialized | Deprecated | Index | Help
| OSGi Service Platform Release 3
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.osgi.service.prefs
Interface PreferencesService

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.

Method Summary
`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.

Method Detail

### getSystemPreferences

    public Preferences getSystemPreferences()

  Returns the root system node for the calling bundle.

### getUserPreferences

    public Preferences getUserPreferences(java.lang.String name)

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

### getUsers

    public java.lang.String[] getUsers()

  Returns the names of users for which node trees exist.

Overview | Package | Class | Tree | Serialized | Deprecated | Index | Help
| OSGi Service Platform Release 3
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) OSGi Alliance (2000, 2003). All Rights Reserved.