dependency-analysis

Package Dependency

微笑、不失礼 提交于 2020-01-12 07:21:27
问题 I have a huge Java Application with numerous packages. Some of the classes in these packages have dependency on classes in other packages. Given a class, I want to know all the dependent classes on it and vice-versa. A GUI tool should be really helpful. 回答1: There's some useful tools described here for the (free) Eclipse IDE. There's also more info on dependency tools with a comparison against depfinder here. 回答2: CDA - Class Dependency Analyzer is incredibly simple to use, and can help you

In Eclipse, how can I move project files without dependencies on a library to a more abstract project?

徘徊边缘 提交于 2020-01-03 05:35:13
问题 I have two Eclipse projects: one that depends upon a certain library (android.jar) and one that is more abstract and doesn't contain that dependency. I am in the process of migrating all classes that have no dependencies on the package, in my case android.* , to the more abstract project. Is there a Eclipse feature that can help automate the move? Ideally, there would be feature that directly lets you automatically search for and move files that can be relocated to a new project. It would

Refactoring to separate business logic from code behind

久未见 提交于 2019-12-11 02:28:30
问题 I've inherited a asp.net project and I'm finding that the code behind pages contain a lot of business logic. I've decided that in most cases it's better to leave the working code in place than try and do a massive refactoring. However there are pages that perform functionality that could be re-used in command line utilities for batch processing. I'd like to focus my energies on these pages, refactoring out the business logic and referencing that in other utilities. I am currently looking to

What algorithms can analyse call dependencies for library fission?

那年仲夏 提交于 2019-12-05 03:01:07
问题 Suppose I have a library which contains a bunch of interdependent functions, this library is too big and I want to split it up. What algorithms are there to find suitable partitions? Simple example, there are four functions in it: alpha, beta, gamma, and delta. beta and gamma both call delta. module1 calls alpha and beta. module2 calls gamma. module3 calls alpha, beta, and gamma. The output of the algorithm could be: LibA contains (alpha,beta) LibB contains (gamma) LibC contains (delta)

What algorithms can analyse call dependencies for library fission?

拟墨画扇 提交于 2019-12-03 17:08:04
Suppose I have a library which contains a bunch of interdependent functions, this library is too big and I want to split it up. What algorithms are there to find suitable partitions? Simple example, there are four functions in it: alpha, beta, gamma, and delta. beta and gamma both call delta. module1 calls alpha and beta. module2 calls gamma. module3 calls alpha, beta, and gamma. The output of the algorithm could be: LibA contains (alpha,beta) LibB contains (gamma) LibC contains (delta) module1 depends on LibA module2 depends on LibB module3 depends on LibA and LibB LibA depends on LibC LibB