On May 24, 7:47 am, "[email protected]" <[email protected]> wrote: > I have a bunch of singletons that should be singletons until the user > chose to reload parts of the application.
If they need resetting, then they're not singletons! I recommend writing a new scope, "ReloadableScope", and binding all of the reloadable objects in that scope. Anything that depends on a ReloadableScoped object should itself be either ReloadableScoped or unscoped. If you have true singletons depending on ReloadableScoped objects, you might run into problems. Full instructions for implementing custom scopes are here: http://code.google.com/docreader/#p=google-guice&s=google-guice&t=CustomScopes --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
