| Package | Description |
|---|---|
| rs.baselib.prefs |
Preference Alternatice (kept for reference) - Experimental.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractPreferences
Abstract implementation of a preference node.
|
class |
Preferences
Default implementation of preferences.
|
| Modifier and Type | Method and Description |
|---|---|
protected IPreferences |
PreferencesService.createRootNode()
Creates the root node.
|
protected abstract IPreferences |
AbstractPreferencesService.createRootNode()
Creates the root node.
|
protected IPreferences |
AbstractPreferencesService.getApplicationNode(IPreferences node)
Returns the application node rom the given node
|
protected IPreferences |
AbstractPreferencesService.getApplicationPreferences(String applicationName)
Returns the application preferences.
|
protected IPreferences |
AbstractPreferencesService.getLockNode(IPreferences node)
Returns the node where locks will be placed upon.
|
IPreferences |
IPreferencesService.getSystemPreferences(String applicationName)
Returns the system preferences for the given application.
|
IPreferences |
AbstractPreferencesService.getSystemPreferences(String applicationName)
Returns the system preferences for the given application.
|
IPreferences |
IPreferencesService.getUserPreferences(String applicationName)
Returns the user preferences for the given application.
|
IPreferences |
AbstractPreferencesService.getUserPreferences(String applicationName)
Returns the user preferences for the given application.
|
IPreferences |
AbstractPreferences.node(String pathName)
Returns a named
Preferences object (node), creating it and any
of its ancestors if they do not already exist. |
IPreferences |
IPreferences.node(String pathName)
Returns a named
Preferences object (node), creating it and any
of its ancestors if they do not already exist. |
IPreferences |
AbstractPreferences.parent()
Returns the parent of this node, or
null if this is the root. |
IPreferences |
IPreferences.parent()
Returns the parent of this node, or
null if this is the root. |
| Modifier and Type | Method and Description |
|---|---|
void |
IPreferencesService.flush(IPreferences node)
Flushes any changes made in this node.
|
void |
AbstractPreferencesService.flush(IPreferences node)
Flushes any changes made in this node.
|
protected void |
PreferencesService.flushSystemPreferences(IPreferences node,
String applicationName)
Flushes the system preferences from the given node.
|
protected abstract void |
AbstractPreferencesService.flushSystemPreferences(IPreferences node,
String applicationName)
Flushes the system preferences from the given node.
|
protected void |
PreferencesService.flushUserPreferences(IPreferences node,
String applicationName)
Flushes the user preferences from the given node.
|
protected abstract void |
AbstractPreferencesService.flushUserPreferences(IPreferences node,
String applicationName)
Flushes the user preferences from the given node.
|
protected String |
AbstractPreferencesService.getApplicationName(IPreferences node)
Returns the application name of the given node.
|
protected IPreferences |
AbstractPreferencesService.getApplicationNode(IPreferences node)
Returns the application node rom the given node
|
protected IPreferences |
AbstractPreferencesService.getLockNode(IPreferences node)
Returns the node where locks will be placed upon.
|
Lock |
IPreferencesService.getReadLock(IPreferences node)
Returns the read lock object for the given node.
|
Lock |
AbstractPreferencesService.getReadLock(IPreferences node)
Returns the read lock object for the given node.
|
protected ReadWriteLock |
AbstractPreferencesService.getReadWriteLock(IPreferences node)
Returns the correct lock for the given node.
|
Lock |
IPreferencesService.getWriteLock(IPreferences node)
Returns the write lock object for the given node.
|
Lock |
AbstractPreferencesService.getWriteLock(IPreferences node)
Returns the write lock object for the given node.
|
protected void |
PreferencesService.load(IPreferences node,
InputStream in)
Loads the information from the stream into the node
|
protected void |
PreferencesService.loadSystemPreferences(IPreferences node,
String applicationName)
Loads the system preferences into the given node.
|
protected abstract void |
AbstractPreferencesService.loadSystemPreferences(IPreferences node,
String applicationName)
Loads the system preferences into the given node.
|
protected void |
PreferencesService.loadUserPreferences(IPreferences node,
String applicationName)
Loads the user preferences into the given node.
|
protected abstract void |
AbstractPreferencesService.loadUserPreferences(IPreferences node,
String applicationName)
Loads the user preferences into the given node.
|
void |
AbstractPreferencesService.nodeChanged(IPreferences node)
A node changed.
|
protected void |
PreferencesService.put(IPreferences node,
String key,
String value)
Stores the key at the appropriate sub-node.
|
protected void |
PreferencesService.save(IPreferences node,
OutputStream out)
Saves the node information into the stream
|
protected void |
PreferencesService.save(String prefix,
IPreferences node,
PrintWriter out)
Recursively stores the given node into the writer.
|
void |
IPreferencesService.sync(IPreferences node)
Wait for any modifications to be flushed.
|
void |
AbstractPreferencesService.sync(IPreferences node)
Wait for any modifications to be flushed.
|
Copyright © 2014. All rights reserved.