Comment #50 on issue 288 by [email protected]: FinalizableReferenceQueue still leaks
http://code.google.com/p/google-guice/issues/detail?id=288

Correct me if I'm wrong, but I don't think we can use Guice.createInjector(myModule, myExecutor) for the same reason mentioned in comment #36.

As far as I can tell, we have four options:

1. Do something at Guice initialization time: Guice.init(Executor), or
2. Do something at Guice shutdown time: Guice.shutdown(), or
3. Refactor Guice allow Injector-level finalization: comment #35
4. Guice ships with a ServletContextListener that uses implementation details to shut down Guice (using reflection, unsafe casting or anything else you can come up with). Users would then be responsible for registering this ServletContextListener in their configuration.

Did I miss anything?

--
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.

Reply via email to