1 /*2 * @(#)FileSystemPreferencesFactory.java 1.5 03/12/193 *4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.6 */7 8 package java.util.prefs;9 10 /**11 * Factory for FileSystemPreferences. This class allows FileSystemPreferences12 * to be installed as the Preferences implementations via the13 * java.util.prefs.PreferencesFactory system property.14 *15 * @author Josh Bloch16 * @version 1.5, 12/19/0317 * @see FileSystemPreferences18 * @see Preferences19 * @since 1.420 */21 22 class FileSystemPreferencesFactory implements PreferencesFactory {23 public Preferences userRoot() {24 return FileSystemPreferences.getUserRoot();25 }26 27 public Preferences systemRoot() {28 return FileSystemPreferences.getSystemRoot();29 }30 }31