/** * Configures the preferences. * <p> * If the property {@code "readonlyprefs"} is set, any write attempt to the preferences * will be silently ignored.<br> * The property {@code "noprefsync"} turns off preferences auto sync between jvms.<br> * The property {@code "systemprefs"} restricts to system preferences. Default is user * and system prefs. */ protected void configurePreferences() { // install preferences handler to use the db as backing store PersistedPreferencesFactory.getInstance().setReadOnly(getProperty("readonlyprefs") != null); PersistedPreferencesFactory.getInstance().setSystemOnly(getProperty("systemprefs") != null); PersistedPreferencesFactory.getInstance().setAutoSync(getProperty("noprefsync") == null); }