Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Preferences API in windows  RSS feed

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm thinkig of using the Preferences API.

However, the default implementation of the JDK in windows
goes under the windows registry, and I'd like to centralize
all the config information in the server (in files or database,
preferably). Is there any way to change it? Has the JDK another
implementations avaiables? If not, can anybody tell me about
any open-source projects to choose?

Thanks in advance

Posts: 9521
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the API doc for java.util.prefs.Preferences:

Implementation note: In Sun's JRE, the PreferencesFactory implementation is specified using the system property java.util.prefs.PreferencesFactory, which must be set to the fully qualified name of a class implementing the PreferencesFactory.

So make your own implementation of PreferencesFactory and Preferences and set the system property java.util.prefs.PreferencesFactory on your command line or in your program.
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!