wt.prefs
Class StandardPreferenceService

java.lang.Object
  extended bywt.services.StandardManager
      extended bywt.prefs.StandardPreferenceService
All Implemented Interfaces:
Manager, NetFactor, PreferenceService, Serializable

public class StandardPreferenceService
extends StandardManager
implements PreferenceService, Serializable

Use the newStandardPreferenceService static factory method(s), not the StandardPreferenceService constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  PrefEntryCache prefEntryCache
           
private static String RESOURCE
           
private static boolean VERBOSE
           
private static boolean VERBOSE_CACHE
           
 
Fields inherited from class wt.services.StandardManager
 
Fields inherited from interface wt.services.Manager
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE
 
Constructor Summary
StandardPreferenceService()
           
 
Method Summary
private  PrefEntry addToCache(PrefEntry[] aEntries, String context, PrefEntrySelector selector, String name, boolean found)
           
 String[] children(String node, String[] context)
          

Supported API: false
 void delete(String node, String context, String name)
          

Supported API: false
 String get(String node, String[] context, String name)
          

Supported API: false
 String get(String node, String context, String name)
          

Supported API: false
 PrefEntry[] getAll(WTPreferences pref, String[] keys)
          

Supported API: false
 String getConceptualClassname()
          Deprecated.  
 PrefEntry[] getEntries(String node, String[] context, String name)
          

Supported API: false
 PrefEntry[] getEntries(String node, String[] context, String[] name)
          

Supported API: false
 PrefEntry[] getEntries(String node, String context, String name)
          

Supported API: false
 PrefEntry getEntry(String node, String[] context, String name)
          

Supported API: false
 PrefEntry getEntry(String node, String context, String name)
          

Supported API: false
private  PrefEntryCache getPrefEntryCache()
           
protected  void initialize()
          

Supported API: false
 String[] keys(String node, String[] context)
          

Supported API: false
static StandardPreferenceService newStandardPreferenceService()
          

Supported API: false
protected  void performStartupProcess()
          

Supported API: false
 PrefEntry put(String node, String context, String name, String value)
          

Supported API: false
 HashMap putAll(String node, String context, HashMap map)
          This method will put/update several Preferences into the Preference System

Supported API: true
 void updateEntry(PrefEntry entry)
          

Supported API: false
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, registerEvents, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

prefEntryCache

private PrefEntryCache prefEntryCache

VERBOSE

private static boolean VERBOSE

VERBOSE_CACHE

private static boolean VERBOSE_CACHE
Constructor Detail

StandardPreferenceService

public StandardPreferenceService()
Method Detail

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Overrides:
getConceptualClassname in class StandardManager
Returns:
String

performStartupProcess

protected void performStartupProcess()


Supported API: false

Overrides:
performStartupProcess in class StandardManager

newStandardPreferenceService

public static StandardPreferenceService newStandardPreferenceService()
                                                              throws WTException


Supported API: false

Returns:
StandardPreferenceService
Throws:
WTException

put

public PrefEntry put(String node,
                     String context,
                     String name,
                     String value)
              throws WTException


Supported API: false

Specified by:
put in interface PreferenceService
Parameters:
node -
context -
name -
value -
Returns:
PrefEntry
Throws:
WTException

get

public String get(String node,
                  String[] context,
                  String name)
           throws WTException


Supported API: false

Specified by:
get in interface PreferenceService
Parameters:
node -
context -
name -
Returns:
String
Throws:
WTException

get

public String get(String node,
                  String context,
                  String name)
           throws WTException


Supported API: false

Specified by:
get in interface PreferenceService
Parameters:
node -
context -
name -
Returns:
String
Throws:
WTException

delete

public void delete(String node,
                   String context,
                   String name)
            throws WTException


Supported API: false

Specified by:
delete in interface PreferenceService
Parameters:
node -
context -
name -
Throws:
WTException

children

public String[] children(String node,
                         String[] context)
                  throws WTException


Supported API: false

Specified by:
children in interface PreferenceService
Parameters:
node -
context -
Returns:
String[]
Throws:
WTException

keys

public String[] keys(String node,
                     String[] context)
              throws WTException


Supported API: false

Specified by:
keys in interface PreferenceService
Parameters:
node -
context -
Returns:
String[]
Throws:
WTException

getEntry

public PrefEntry getEntry(String node,
                          String[] context,
                          String name)
                   throws WTException


Supported API: false

Specified by:
getEntry in interface PreferenceService
Parameters:
node -
context -
name -
Returns:
PrefEntry
Throws:
WTException

getEntry

public PrefEntry getEntry(String node,
                          String context,
                          String name)
                   throws WTException


Supported API: false

Specified by:
getEntry in interface PreferenceService
Parameters:
node -
context -
name -
Returns:
PrefEntry
Throws:
WTException

getEntries

public PrefEntry[] getEntries(String node,
                              String[] context,
                              String name)
                       throws WTException


Supported API: false

Specified by:
getEntries in interface PreferenceService
Parameters:
node -
context -
name -
Returns:
PrefEntry[]
Throws:
WTException

getEntries

public PrefEntry[] getEntries(String node,
                              String context,
                              String name)
                       throws WTException


Supported API: false

Specified by:
getEntries in interface PreferenceService
Parameters:
node -
context -
name -
Returns:
PrefEntry[]
Throws:
WTException

updateEntry

public void updateEntry(PrefEntry entry)
                 throws WTException


Supported API: false

Specified by:
updateEntry in interface PreferenceService
Parameters:
entry - Updates the PrefEntry
Throws:
WTException

putAll

public HashMap putAll(String node,
                      String context,
                      HashMap map)
               throws WTException
This method will put/update several Preferences into the Preference System

Supported API: true

Specified by:
putAll in interface PreferenceService
Parameters:
node - The fully qualified node name
context - The edit_context to use for Preference updating
map - The map of key/value pairs
Returns:
HashMap
Throws:
WTException

getAll

public PrefEntry[] getAll(WTPreferences pref,
                          String[] keys)
                   throws WTException


Supported API: false

Specified by:
getAll in interface PreferenceService
Parameters:
pref -
keys -
Returns:
PrefEntry[]
Throws:
WTException

getEntries

public PrefEntry[] getEntries(String node,
                              String[] context,
                              String[] name)
                       throws WTException


Supported API: false

Specified by:
getEntries in interface PreferenceService
Parameters:
node -
context -
name -
Returns:
PrefEntry[]
Throws:
WTException

getPrefEntryCache

private PrefEntryCache getPrefEntryCache()

initialize

protected void initialize()
                   throws WTException
Description copied from class: StandardManager


Supported API: false

Overrides:
initialize in class StandardManager
Throws:
WTException

addToCache

private PrefEntry addToCache(PrefEntry[] aEntries,
                             String context,
                             PrefEntrySelector selector,
                             String name,
                             boolean found)
                      throws WTException
Throws:
WTException