Class Config
- java.lang.Object
-
- org.openstreetmap.josm.spi.preferences.Config
-
public final class Config extends java.lang.Object
Class to hold the global preferences object and the provider of base directories.- Since:
- 12847
-
-
Field Summary
Fields Modifier and Type Field Description private static IBaseDirectories
baseDirectories
private static IPreferences
preferences
private static IUrls
urls
-
Constructor Summary
Constructors Modifier Constructor Description private
Config()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IBaseDirectories
getDirs()
Get class that provides the location of certain base directoriesstatic IPreferences
getPref()
Get the preferences.static IUrls
getUrls()
Get class that provides the value of certain URLsstatic void
setBaseDirectoriesProvider(IBaseDirectories baseDirectories)
Install the global base directories provider.static void
setPreferencesInstance(IPreferences preferences)
Install the global preference instance.static void
setUrlsProvider(IUrls urls)
Install the global URLs provider.
-
-
-
Field Detail
-
preferences
private static IPreferences preferences
-
baseDirectories
private static IBaseDirectories baseDirectories
-
-
Constructor Detail
-
Config
private Config()
-
-
Method Detail
-
getPref
public static IPreferences getPref()
Get the preferences.- Returns:
- the preferences
- Since:
- 12847
-
getDirs
public static IBaseDirectories getDirs()
Get class that provides the location of certain base directories- Returns:
- the global
IBaseDirectories
instance - Since:
- 12855
-
getUrls
public static IUrls getUrls()
Get class that provides the value of certain URLs- Returns:
- the global
IUrls
instance - Since:
- 14119
-
setPreferencesInstance
public static void setPreferencesInstance(IPreferences preferences)
Install the global preference instance.- Parameters:
preferences
- the global preference instance to set (must not be null)- Since:
- 12847
-
setBaseDirectoriesProvider
public static void setBaseDirectoriesProvider(IBaseDirectories baseDirectories)
Install the global base directories provider.- Parameters:
baseDirectories
- the global base directories provider instance to set (must not be null)- Since:
- 12855
-
setUrlsProvider
public static void setUrlsProvider(IUrls urls)
Install the global URLs provider.- Parameters:
urls
- the global URLs provider instance to set (must not be null)- Since:
- 14119
-
-