ResourceBundles: Dynamic reloading of resources
Is there a way to force a ResourceBundle to reload properties that it has read in? For example, if I call:
ResourceBundle.getBundle(bundleName, Locale)
I am returned a ResourceBundle containing all the resources (properties) that it read in. Initially this is what I want; however, I want to be able to create a thread to periodically check for new resources being created read in from the resource files identified by the bundleName passed to getBundle. This is useful for allowing values to change on the fly.
Does anyone know a way to do this without rewriting this functionality myself?
- Mike

