Preferences API in NetBeans

The Preferences API is java.util.prefs package provides convenient way to save and recall preference data. This data should be:

Design goals of Preferences API

Use cases for Preferences API in NetBeans

These use cases are currently covered by setting infrastructure which is our way to store persistent data. Code that utilizes settings infrastructure (like SystemOption, TopComponent, ServiceType) could be replaced or rewritten by Preferences API.

Use cases for NetBeans specific implementation

We need an implementation that will write to somewhere in the userdir, rather than globally because not to share a common storage area for user preferences if someone is running : Preferences API permit, but not require, stored defaults. Applications based on NetBeans should be able to specify default values which means: Almost all user preferences will be probably imported from previous version. But there might be requirement to: