PreferencesSvc Class

com.bea.ide.core
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

Nested Class Summary

public static interfacePreferencesSvc.I
           Interface for the preferences svc
public static interfacePreferencesSvc.IPreferencePkg
           This interface exposes the preference values for a preference node.

Field Summary

protected static PreferencesSvc.I
instance
Static instance of the service interface
 

Constructor Summary

PreferencesSvc()

 

Method Summary

public static PreferencesSvc.I
get()
Obtain the service interface.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Field Detail

instance

protected static PreferencesSvc.I instance
Static instance of the service interface

 

Constructor Detail

PreferencesSvc

public PreferencesSvc()
 

Method Detail

get() Method

public static PreferencesSvc.I get()
Obtain the service interface. Value is cached in the instance variable after the first use.