the Java package design analyser JDepend the Java package design analyser
Table Of Contents Why use JDepend? How to install JDepend? How to use JDepend? How to understand the output in JDepend? Sources
Why use JDepend? JDepend automatically measures: extensibility reusability maintainability of a package to manage and control its dependencie effectively
Install JDepend Download JDepend from http://andrei.gmxhome.de/jdepend4eclipse/ Put the downloaded .jar file into the Eclipse plugin directory Restart Eclipse (only if it is already opened) Installation complete
How to use JDepend? 1. press right mouse button onto the sourcefolder you would like to analyse 2. select „Run JDepend analysis“ to start JDepend
How to use JDepend? Shows all subpackages. Select the package you want to analyse
How to use JDepend? different values appear explanation on next page shows all packages with circular dependency shows packages where our selected package is addicted to shows packages which are addicted to our selected one shows the instability and abstractness of the selected package
How to understand the output in JDepend CC (Concrete Classes): Number of Concrete Classes in package AC (Abstract Classes): Number of abstract classes and interfaces in package Ca (Afferent Couplings): Number of packages which are addicted to the selected package Ce (Efferent Couplings): Number of packages which our selected package is addicted to A (Abstractness): Number of abstract classes in percent I (Instability): Shows instability of the package (stable = 0, instable = 1) D (Distance): The Factor of a good balanced software is about 1 (A+I) Package Dependeny Cycles: Shows if the package has circular dependencies
Thanks for your attention!!! Sources http://www.clarkware.com/software/JDepend.html http://ebus.informatik.uni-leipzig.de/www/media/lehre/seminar-javatools05/semtools05-selesnjov-text.pdf This presentation will be available at www.johner.org very soon ;-) Thanks for your attention!!!