I spent the last 4 hours to understand why
gwtoolbox is not injecting dependencies. It was a painful process; there was not any log, just a
NullPointerException since there is nothing to inject in the container.
Anyway the problem occurred after upgrading
0.7. Finally I figured out that they changed default
PackageResolver strategy in the new version. Before I wasn’t specifying any
PackageResolver, meaning; I was relying on the default package resolver.
When they changed the default package resolver, my project was unable to discover components at compile time. Since no component was discovered at compile time, the container was empty at runtime and that was why there wasn’t any log.
As can be seen from the following code that the default package resolver is some kind of relaxed version of
Just be aware and do not spend 4 hours like me 🙂