KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > util > prefs > FileSystemPreferencesFactory


1 /*
2  * @(#)FileSystemPreferencesFactory.java 1.5 03/12/19
3  *
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 FileSystemPreferences
12  * to be installed as the Preferences implementations via the
13  * java.util.prefs.PreferencesFactory system property.
14  *
15  * @author Josh Bloch
16  * @version 1.5, 12/19/03
17  * @see FileSystemPreferences
18  * @see Preferences
19  * @since 1.4
20  */

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
Popular Tags