Comment #42 on issue 62 by james.strachan: Lifecycle support http://code.google.com/p/google-guice/issues/detail?id=62
@dhanji: actually thats a neat idea :) I'm gonna take a stab at trying to implement that. My only reservation is that all the scopes (application, request, session) *already* store the objects (they have to so that they can be reused within the scope). So all we need really need is a way of iterating through all the objects in a scope so they can be closed. (e.g. iterating through the request/session scopes in the servlet or through the injector's bindings for application scope). It does feel a bit dirty and inefficient having another Map for each application/request/session scope and copying all objects into them just because Guice can't expose a hook to process all objects within a scope. But in the meantime you're idea is a great workaround :) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice-dev" 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-dev?hl=en -~----------~----~----~----~------~----~------~--~---
