PreferencesSvc Class
- public class PreferencesSvc
extends Object
This class facilitates the user of preferences by providing default value lookup and quick access to related
preferences.
The PreferenceSvc interface hands out preference package objects that encapsulate related preferences. A preference
storage object (implementing IPreferencesSupport
) serves as the location from which preference values are
retrieved. Various means exist of specifying the way that packages are related. Typically a class object is passed in.
The name for the class serves as a means of identifying the key for the preference group.
The PreferenceSvc also supports looking up default values using the ResourceSvc. This mechanism will use the same class
object to serve as the key for the defaults. Generally, the package for the class serves as the key to the ResourceSvc lookup.
Details for how this key maps to a property lookup mechanism is detailed in the ResourceSvc
.
-
Hierarchy
-
Object
PreferencesSvc
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
protected static PreferencesSvc.I
instance
- Static instance of the service interface
PreferencesSvc
public PreferencesSvc()
get() Method
public static PreferencesSvc.I
get()
Obtain the service interface. Value is cached in the instance variable after the first use.