Class PreferencesImpl

All Implemented Interfaces:
ReadOnlyMap<String>, WriteableMap<String>, Preferences

public class PreferencesImpl extends Object implements Preferences
This implemenation maintains two maps: one is the initial map as specified when creating this object, the other one collects all changes tracked by the various setters. On each call of save() the two maps are merged and the new values are written to the backend.

This class is not thread safe. Use an instance from PreferencesFactory.getPreferences(Node) in each thread.