1. /*
  2. * @(#)WindowsPreferencesFactory.java 1.6 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.util.prefs;
  8. /**
  9. * Implementation of <tt>PreferencesFactory</tt> to return
  10. * WindowsPreferences objects.
  11. *
  12. * @author Konstantin Kladko
  13. * @version 1.6, 01/23/03
  14. * @see Preferences
  15. * @see WindowsPreferences
  16. * @since 1.4
  17. */
  18. class WindowsPreferencesFactory implements PreferencesFactory {
  19. /**
  20. * Returns WindowsPreferences.userRoot
  21. */
  22. public Preferences userRoot() {
  23. return WindowsPreferences.userRoot;
  24. }
  25. /**
  26. * Returns WindowsPreferences.systemRoot
  27. */
  28. public Preferences systemRoot() {
  29. return WindowsPreferences.systemRoot;
  30. }
  31. }