org.springframework.richclient.settings.j2seprefs
Class TransientPreferences

java.lang.Object
  extended by java.util.prefs.Preferences
      extended by java.util.prefs.AbstractPreferences
          extended by org.springframework.richclient.settings.j2seprefs.TransientPreferences

public class TransientPreferences
extends AbstractPreferences

Transient J2SE Preferences implementation. Used for testing with J2SE prefs.

Author:
Peter De Bruycker

Field Summary
 
Fields inherited from class java.util.prefs.AbstractPreferences
lock, newNode
 
Fields inherited from class java.util.prefs.Preferences
MAX_KEY_LENGTH, MAX_NAME_LENGTH, MAX_VALUE_LENGTH
 
Constructor Summary
TransientPreferences()
           
TransientPreferences(AbstractPreferences parent, String name)
           
 
Method Summary
protected  String[] childrenNamesSpi()
           
protected  AbstractPreferences childSpi(String name)
           
protected  void flushSpi()
           
protected  String getSpi(String key)
           
protected  String[] keysSpi()
           
protected  void putSpi(String key, String value)
           
protected  void removeNodeSpi()
           
protected  void removeSpi(String key)
           
protected  void syncSpi()
           
 
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
 
Methods inherited from class java.util.prefs.Preferences
importPreferences, systemNodeForPackage, systemRoot, userNodeForPackage, userRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransientPreferences

public TransientPreferences(AbstractPreferences parent,
                            String name)

TransientPreferences

public TransientPreferences()
Method Detail

flushSpi

protected void flushSpi()
                 throws BackingStoreException
Specified by:
flushSpi in class AbstractPreferences
Throws:
BackingStoreException

removeNodeSpi

protected void removeNodeSpi()
                      throws BackingStoreException
Specified by:
removeNodeSpi in class AbstractPreferences
Throws:
BackingStoreException

syncSpi

protected void syncSpi()
                throws BackingStoreException
Specified by:
syncSpi in class AbstractPreferences
Throws:
BackingStoreException

childrenNamesSpi

protected String[] childrenNamesSpi()
                             throws BackingStoreException
Specified by:
childrenNamesSpi in class AbstractPreferences
Throws:
BackingStoreException

keysSpi

protected String[] keysSpi()
                    throws BackingStoreException
Specified by:
keysSpi in class AbstractPreferences
Throws:
BackingStoreException

removeSpi

protected void removeSpi(String key)
Specified by:
removeSpi in class AbstractPreferences

getSpi

protected String getSpi(String key)
Specified by:
getSpi in class AbstractPreferences

putSpi

protected void putSpi(String key,
                      String value)
Specified by:
putSpi in class AbstractPreferences

childSpi

protected AbstractPreferences childSpi(String name)
Specified by:
childSpi in class AbstractPreferences


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.