How do I find all references (i.e., dependencies, afferent couplings) to a Java class? -
using eclipse, can select class , list references (ctrl+shift+g). i'm looking mechanism entire development team obtain same list of references central location, such sonarqube server.
when drill down class on sonarqube, shows me number of afferent couplings. how can find out are? know take huge amount of time/space sonar generate kind of report, maybe there's plug-in can calculate requested (as per execution of jenkins job).
any suggestions of solutions can used list dependencies (afferent couplings) java type in given codebase help.
after long search, found, experimented with, configured, , rolled out solution problem our entire java development organization. here's summary of solution:
- we have several java projects, broadly divided libs , (web) applications.
- applications can use different libs. challenge find in our entire codebase callers of given class/method/constructor in 1 of our libs.
- we use continuous integration tool (jenkins) builds libs , applications once week off of trunk deployment (a sort of continuous delivery weekly deployment).
- we configured jobs run weekly deployment copy generated jar/war/ear files specific server machine.
- on server machine, installed dependency finder tool. amazing free tool key solution. can parse , extract all dependencies compiled code (in jar files example). user can query tool efferent (outbound) , afferent (inbound) dependencies. tools out there give efferent dependencies.
- on server machine, automatically run script calls dependency finder process (i.e., extract dependencies from) jar files shortly after they're generated once week. processing entire code base takes less hour.
- on machine, deployed local tomcat web application (war) comes dependency finder. (dependency finder comes gui (swt) client, command line version, , web ui version.
- we shared url dependency finder web interface developers.
- using web ui, can specify query. query inbound dependencies given method in class takes 20 seconds.
Comments
Post a Comment