Package com.inductiveautomation.rm.base
Class RMPrefsUtils.BogusPreferences
- java.lang.Object
-
- java.util.prefs.Preferences
-
- java.util.prefs.AbstractPreferences
-
- com.inductiveautomation.rm.base.RMPrefsUtils.BogusPreferences
-
- Enclosing class:
- RMPrefsUtils
public static class RMPrefsUtils.BogusPreferences extends java.util.prefs.AbstractPreferencesA Preferences implementation that just stores prefs to a map, in case we don't have permission to read & write permissions.
-
-
Constructor Summary
Constructors Constructor Description BogusPreferences(java.util.prefs.AbstractPreferences parent, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String[]childrenNamesSpi()protected java.util.prefs.AbstractPreferenceschildSpi(java.lang.String name)protected voidflushSpi()protected java.lang.StringgetSpi(java.lang.String key)protected java.lang.String[]keysSpi()protected voidputSpi(java.lang.String key, java.lang.String value)protected voidremoveNodeSpi()protected voidremoveSpi(java.lang.String key)protected voidsyncSpi()-
Methods inherited from class java.util.prefs.AbstractPreferences
absolutePath, addNodeChangeListener, addPreferenceChangeListener, cachedChildren, childrenNames, clear, exportNode, exportSubtree, flush, get, getBoolean, getByteArray, getChild, getDouble, getFloat, getInt, getLong, isRemoved, isUserNode, keys, name, node, nodeExists, parent, put, putBoolean, putByteArray, putDouble, putFloat, putInt, putLong, remove, removeNode, removeNodeChangeListener, removePreferenceChangeListener, sync, toString
-
-
-
-
Method Detail
-
syncSpi
protected void syncSpi() throws java.util.prefs.BackingStoreException- Specified by:
syncSpiin classjava.util.prefs.AbstractPreferences- Throws:
java.util.prefs.BackingStoreException
-
flushSpi
protected void flushSpi() throws java.util.prefs.BackingStoreException- Specified by:
flushSpiin classjava.util.prefs.AbstractPreferences- Throws:
java.util.prefs.BackingStoreException
-
removeSpi
protected void removeSpi(java.lang.String key)
- Specified by:
removeSpiin classjava.util.prefs.AbstractPreferences
-
removeNodeSpi
protected void removeNodeSpi() throws java.util.prefs.BackingStoreException- Specified by:
removeNodeSpiin classjava.util.prefs.AbstractPreferences- Throws:
java.util.prefs.BackingStoreException
-
putSpi
protected void putSpi(java.lang.String key, java.lang.String value)- Specified by:
putSpiin classjava.util.prefs.AbstractPreferences
-
keysSpi
protected java.lang.String[] keysSpi() throws java.util.prefs.BackingStoreException- Specified by:
keysSpiin classjava.util.prefs.AbstractPreferences- Throws:
java.util.prefs.BackingStoreException
-
getSpi
protected java.lang.String getSpi(java.lang.String key)
- Specified by:
getSpiin classjava.util.prefs.AbstractPreferences
-
childSpi
protected java.util.prefs.AbstractPreferences childSpi(java.lang.String name)
- Specified by:
childSpiin classjava.util.prefs.AbstractPreferences
-
childrenNamesSpi
protected java.lang.String[] childrenNamesSpi() throws java.util.prefs.BackingStoreException- Specified by:
childrenNamesSpiin classjava.util.prefs.AbstractPreferences- Throws:
java.util.prefs.BackingStoreException
-
-