Open GoogleCodeExporter opened 9 years ago
There's unfortunately no way we can insert information into the error messages,
because the exceptions are all outside of Guice's control. (They're coming
from the JVM & Guava, not Guice. The classes just appear inside Guice's
packages because we repackage Guava at build time.)
However, you can get more information in Guice 4.0 by using a ProvisionListener.
In one of your modules, call:
bindListener(Matchers.any(), new ProvisionListener() {
public void onProvision(ProvisionInvocation provision) {
System.out.println("Provisioning: " + provision.getBinding());
}
});
... that will add some more overhead to the object creation graph, so you won't
be able to recursively create as many objects as you would without it, but it
will give you some insight into what's going on, at least.
Original comment by sberlin
on 10 Oct 2013 at 2:06
Original issue reported on code.google.com by
mbur...@gmail.com
on 29 Jan 2012 at 6:46