How could I use guice to change configuration dynamically at runtime?

As an example, we currently use spring to change varying config params
while the system is running.  For instance if we have a dependency on
a server at address a.example.com (which was loaded initially through
a property file), and we need to change that address to b.example.com
(because there was a power outage or something) we update the
properties file and within 5 minutes we have a thread that refreshes
the spring context from disk (which reloads the address from the
properties file) and everything dynamically switches.

Another example would be dynamically adjusting a logger setting to
output debug settings for a few minutes without having to restart the
server.

I understand that this introduces a lot of risk in terms of screwing
something up, but is something like this even possible with guice?  If
so, what would it look like or are there any examples?

Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to