Class JmriPreferencesProvider

java.lang.Object
jmri.util.prefs.JmriPreferencesProvider

public final class JmriPreferencesProvider
extends Object
Provides instances of Preferences backed by a JMRI-specific storage implementation based on a Properties file.

There are two Properties files per Profile and NodeIdentity, both stored in the directory profile:profile:

  • profile.properties preferences that are shared across multiple nodes for a single profile. An example of such a preference would be the Railroad Name preference.
  • <node-identity>/profile.properties preferences that are specific to the profile running on a specific host (<node-identity> is the identity returned by NodeIdentity.storageIdentity()). An example of such a preference would be a file location.

Non-profile specific configuration that applies to all profiles is stored in the file settings:preferences/preferences.properties.