On May 29, 1:12 pm, Dmitry Skavish <[email protected]> wrote:
> I could not find a way to destroy child injector, so that the root injector 
> forgets about it.

Child injectors don't need to be destroyed. Once you're no longer
referencing it, it will be garbage collected.

One thing to be careful about with child injectors is that just-in-
time bindings will be created in the parent injector when that
satisfies their dependencies. If you need a binding to be created in
the child only, be sure to add an explicit binding to your child
injector's modules.



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