org.fuin.utils4j
Class PropertiesFilePreferencesFactory

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

public final class PropertiesFilePreferencesFactory
extends Object
implements PreferencesFactory

A factory for creating root nodes using the PropertiesFilePreferences implementation.


Field Summary
static String SYSTEM_PREF_DIR
          System property key used containing the path and name of the "system" preferences directory.
static String USER_PREF_DIR
          System property key used containing the path and name of the "user" preferences directory.
 
Constructor Summary
PropertiesFilePreferencesFactory()
          Default constructor.
PropertiesFilePreferencesFactory(String systemPrefDir, String userPrefDir)
          Constructor with path and filenames of the system and user root directories.
 
Method Summary
 Preferences systemRoot()
          
 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 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_DIR

public static final String USER_PREF_DIR
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(String systemPrefDir,
                                        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 Preferences systemRoot()

Specified by:
systemRoot in interface PreferencesFactory

userRoot

public final Preferences userRoot()

Specified by:
userRoot in interface PreferencesFactory


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