90 likes | 153 Views
J Depend 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.
E N D
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
1. press right mouse buttononto 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 youwant to analyse How to use JDepend?
different values appearexplanation on next page shows all packages withcircular dependency shows packages where our selected package isaddicted to shows packages which are addicted to our selected one shows the instability and abstractness of the selectedpackage How to use JDepend?
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
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!!!