Is there a tool that will look at my Java code and suggest a good package structure?

I have a large code base, and I would like to reorganize the structure of the package so that classes that interact strongly in one package.

It seems that it should be possible to create a tool that could look at interactions between classes, and then group those classes that interact strongly. These groups can then offer a good hierarchy for packages.

Is there such a tool? (open source is preferred).

+3
source share
6 answers

Structural Analysis for Java is an Eclipse plugin that does some dependency analysis:

http://stan4j.com/

+1
source

Lattix, Matrix Dependency Structure Matrix , . .

http://www.lattix.com/

+1
0

Something that can at least tell you if you're on the right track is JDepend . It encourages dependency on highly abstract packages (which are supposed to change less than packages with less abstract code) and will warn you when your packages have circular dependencies. I think this is a good reality check.

There are many ways to use it, including the Eclipse plugin .

0
source

Source: https://habr.com/ru/post/1697612/


All Articles