org.fuin.utils4j
Class PropertiesFilePreferencesFactory

java.lang.Object
  extended by org.fuin.utils4j.PropertiesFilePreferencesFactory
All Implemented Interfaces:
java.util.prefs.PreferencesFactory

public final class PropertiesFilePreferencesFactory
extends java.lang.Object
implements java.util.prefs.PreferencesFactory

A factory for creating root nodes using the PropertiesFilePreferences implementation.


Field Summary
static java.lang.String SYSTEM_PREF_DIR
          System property key used containing the path and name of the "system" preferences directory.
static java.lang.String USER_PREF_FILE
          System property key used containing the path and name of the "user" preferences directory.
 
Constructor Summary
PropertiesFilePreferencesFactory()
          Default constructor.
PropertiesFilePreferencesFactory(java.lang.String systemPrefDir, java.lang.String userPrefDir)
          Constructor with path and filenames of the system and user root directories.
 
Method Summary
 java.util.prefs.Preferences systemRoot()
          
 java.util.prefs.Preferences userRoot()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_PREF_DIR

public static final java.lang.String SYSTEM_PREF_DIR
System property key used containing the path and name of the "system" preferences directory.

See Also:
Constant Field Values

USER_PREF_FILE

public static final java.lang.String USER_PREF_FILE
System property key used containing the path and name of the "user" preferences directory.

See Also:
Constant Field Values
Constructor Detail

PropertiesFilePreferencesFactory

public PropertiesFilePreferencesFactory()
Default constructor.


PropertiesFilePreferencesFactory

public PropertiesFilePreferencesFactory(java.lang.String systemPrefDir,
                                        java.lang.String userPrefDir)
Constructor with path and filenames of the system and user root directories.

Parameters:
systemPrefDir - Path and name of the "system" preferences directory.
userPrefDir - Path and name of the "user" preferences directory.
Method Detail

systemRoot

public final java.util.prefs.Preferences systemRoot()

Specified by:
systemRoot in interface java.util.prefs.PreferencesFactory

userRoot

public final java.util.prefs.Preferences userRoot()

Specified by:
userRoot in interface java.util.prefs.PreferencesFactory


Copyright © 2009 Future Invent Informationsmanagement GmbH. All Rights Reserved.