com.tensegrity.generic.util.prefs
Class PreferenceFactory

java.lang.Object
  extended bycom.tensegrity.generic.util.prefs.PreferenceFactory

public class PreferenceFactory
extends java.lang.Object

A factory class to create Preferences instances.

Version:
$Id: PreferenceFactory.java,v 1.9 2006/01/26 17:18:02 MichaelKegel Exp $
Author:
Andreas Ebbert

Method Summary
static Preferences createPreferences(java.lang.String defaultFileName, java.lang.Class resourceClass, java.lang.String writeOutName)
          Constructor specifying a default file name, a resource class used to load this file and a write out name for the file holding the preferences.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createPreferences

public static Preferences createPreferences(java.lang.String defaultFileName,
                                            java.lang.Class resourceClass,
                                            java.lang.String writeOutName)
                                     throws ReadException
Constructor specifying a default file name, a resource class used to load this file and a write out name for the file holding the preferences.

Parameters:
defaultFileName - the name of the default preference file.
resourceClass - a class relative to the default file.
writeOutName - the name that will be used when the preferences got written out. They can be found under the given name in directory {user.home}
Returns:
a Preference instance that uses the specified parameters.
Throws:
ReadException - if the default file can not be read.

Find more information in the class documentation



Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.