Class JmriConfigurationProvider

java.lang.Object
jmri.util.prefs.AbstractConfigurationProvider
jmri.util.prefs.JmriConfigurationProvider

public final class JmriConfigurationProvider
extends AbstractConfigurationProvider
Provides a general purpose XML element storage mechanism for the storage of configuration and preferences too complex to be handled by JmriPreferencesProvider.

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

  • profile.xml 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.xml 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.xml.