KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)WindowsPreferencesFactory.java 1.7 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 package java.util.prefs;
8
9 /**
10  * Implementation of <tt>PreferencesFactory</tt> to return
11  * WindowsPreferences objects.
12  *
13  * @author Konstantin Kladko
14  * @version 1.7, 12/19/03
15  * @see Preferences
16  * @see WindowsPreferences
17  * @since 1.4
18  */

19 class WindowsPreferencesFactory implements PreferencesFactory JavaDoc {
20     
21     /**
22      * Returns WindowsPreferences.userRoot
23      */

24     public Preferences JavaDoc userRoot() {
25         return WindowsPreferences.userRoot;
26     }
27     
28     /**
29      * Returns WindowsPreferences.systemRoot
30      */

31     public Preferences JavaDoc systemRoot() {
32         return WindowsPreferences.systemRoot;
33     }
34 }
35
Popular Tags