Determining which minimum banks are required for a function

How do you determine which banks are needed for such and such a function of the structure? For example, which banks are needed from all available for Spring to support only dependency injection?

+5
source share
3 answers

There are tools that create minimal JARs, calculating which classes are actually used in the application, statically analyzing the code, and then creating a new JAR containing only those classes. (I use Zelix Classmaster for this, but there are many alternatives.)

The problem with using these tools for a DI infrastructure like Spring includes:

  • . , . DI Spring, , , , .

  • , JAR, , JAR . JAR , , , , . , Spring.

- , . () , Spring, , XML bean, (, SpringSecurity). . , "" , , - , JAR JAR.

, :

  • Maven/Ivy , , , ... , , .
  • JAR, ... , , .
  • . JAR cruft Webapp, . ( ... . .)
+4

Java- , 600 200- 10 000- . , ...

+1

. , , ( ), .

I once used some ftp help materials for a kind of "utility". It depended on some apache ftp jar. If you have never used ftp functions in a library, you will not need ftp jar, but static code analysis may say that you need it. This is what you need.

0
source

All Articles