This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Java in General and the fly likes refresh ResourceBundle contents Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "refresh ResourceBundle contents" Watch "refresh ResourceBundle contents" New topic
Author

refresh ResourceBundle contents

Ted Jenks
Greenhorn

Joined: Jun 08, 2001
Posts: 6
Does anyone know of a ResourceBundle implementation that provides a method to refresh the bundle that is backed by a properties file? In other words, force the bundle to load the contents of the properties file again?
Thomas Smets
Ranch Hand

Joined: Dec 11, 2001
Posts: 111
Nope you can the ressource bundles are loaded once & they cannot be dereferenced as the VM holds a reference to all the Strings (Keys & Values).

ResourceBundle help I posted earlier on another site. I will keep you informed when my version of the GC RBDL's (Garbage Collectable Resourcebundle) is made available in alpha
Hope to be able to provide you with a correct version for your needs ?


Thomas Smets
Just another developper
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: refresh ResourceBundle contents
 
It's not a secret anymore!