|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.db.DbPreferencesFactory
public class DbPreferencesFactory
Factory for DbPreferences. This class allows DbPreferences to be installed as the Preferences implementations via the java.util.prefs.PreferencesFactory system property.
| Constructor Summary | |
|---|---|
DbPreferencesFactory()
|
|
| Method Summary | |
|---|---|
DbPreferencesKey |
createKey(Db db)
Creates a new DbPreferencesKey. |
DbPreferencesNode |
createNode(Db db)
Creates a new DbPreferencesNode. All nodes are created through this method. |
DbPreferences |
createPreferences(boolean userMode)
Creates a DbPreferences instance. |
protected DbPreferences |
createPreferences(DbPreferences parent,
DbPreferencesNode node)
Creates a DbPreferences instance from a parent and a node. |
DbPreferences |
createPreferences(DbPreferences parent,
String name)
Creates a DbPreferences instance from a parent and a name. |
static void |
installPreferencesFactory(Db db,
boolean autoSync)
Installs the factory class for the Preferences-API. |
Preferences |
systemRoot()
Returns the system root preference node. |
Preferences |
userRoot()
Returns the user root preference node corresponding to the calling user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbPreferencesFactory()
| Method Detail |
|---|
public static void installPreferencesFactory(Db db,
boolean autoSync)
db - is the db-connection the prefs are storedautoSync - is true if automatically sync with other JVMs (recommended)public Preferences userRoot()
java.util.prefs.PreferencesFactory
userRoot in interface PreferencesFactorypublic Preferences systemRoot()
java.util.prefs.PreferencesFactory
systemRoot in interface PreferencesFactorypublic DbPreferences createPreferences(boolean userMode)
userMode - true if user mode
public DbPreferences createPreferences(DbPreferences parent,
String name)
parent - the parent preferences nodename - the name of the child node
protected DbPreferences createPreferences(DbPreferences parent,
DbPreferencesNode node)
throws BackingStoreException
parent - the parent preferencesnode - the node
BackingStoreExceptionpublic DbPreferencesNode createNode(Db db)
db - the db connection
public DbPreferencesKey createKey(Db db)
db - the db connection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||