Package rs.baselib.prefs
Class Preferences
java.lang.Object
rs.baselib.prefs.AbstractPreferences
rs.baselib.prefs.Preferences
- All Implemented Interfaces:
IPreferences
Default implementation of preferences.
- Author:
- ralph
-
Field Summary
Fields inherited from interface rs.baselib.prefs.IPreferences
CHILD_ADDED, CHILD_REMOVED, VALUES_CLEARED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractPreferences
createNode
(AbstractPreferences parent, String name) Subclasses must implement this to return a new child node.protected Lock
Creates the appropriate read lock object.protected Lock
Creates the appropriate write lock object.protected AbstractPreferencesService
Returns the preferences service.Methods inherited from class rs.baselib.prefs.AbstractPreferences
absolutePath, addNode, addPropertyChangeListener, addPropertyChangeListener, childrenNames, clear, firePropertyChange, firePropertyChange, flush, get, getBoolean, getByteArray, getDouble, getFloat, getInt, getLong, getReadLock, getRootNode, getWriteLock, isAbsolute, isRelative, isRootNode, keys, name, node, nodeExists, parent, put, putBoolean, putByteArray, putDouble, putFloat, putInt, putLong, readLock, readUnlock, remove, removeNode, removeNode, removePropertyChangeListener, removePropertyChangeListener, sync, writeLock, writeUnlock
-
Constructor Details
-
Preferences
Constructor.- Parameters:
parent
- the parent preferencesname
- the nam eof this preference object
-
-
Method Details
-
createNode
Subclasses must implement this to return a new child node.- Specified by:
createNode
in classAbstractPreferences
- Parameters:
parent
- the parent to be usedname
- the name to be used- Returns:
- the new node
-
getPreferencesService
Returns the preferences service.- Specified by:
getPreferencesService
in classAbstractPreferences
- Returns:
- the preferences service
-
createReadLock
Creates the appropriate read lock object.- Specified by:
createReadLock
in classAbstractPreferences
- Returns:
- the read lock object
-
createWriteLock
Creates the appropriate write lock object.- Specified by:
createWriteLock
in classAbstractPreferences
- Returns:
- the write lock object
-