Open GoogleCodeExporter opened 9 years ago
Bad things will happen if the JIT binding is always created in the same
injector by default, because of the way JIT bindings work in general.
However, if you call Binder.requireExplicitBindings(), it will disable JIT
bindings while still allowing implicit bindings [the FooImpl in
bind(Foo.class).to(FooImpl.class)], and that will force the implicit binding to
be created in the same injector.
Original comment by sberlin
on 7 Feb 2013 at 2:21
Thanks for the answer. Yep, that's really good to have
Binder.requireExplicitBindings() workaround, got it.
By the way, what kind of bad things will happen? Just professional curiosity :)
Original comment by aleksey....@gmail.com
on 13 Feb 2013 at 7:54
Original issue reported on code.google.com by
aleksey....@gmail.com
on 5 Feb 2013 at 5:27Attachments: