I'm working on a large scale project in Java that uses Guice as its dependency injection framework. Is it possible to find all places in that code that a specific object type should be injected to? Clarification: via static code analysis, not during runtime.
Specifically, I have a method that is annotated @Provides.
I want to detect all places in the code that are bounded to this method return value.
Update:
According to this, there isn't any existing tool for this job.
There isn't any static analysis of Guice to see if you actually have bindings for the annotations you said you did. This means that failures in Guice happen at run-time. Given that developers can fat-finger strings not referenced as constants, Guice also allows you to use your own annotations.