javadependency-injectionframeworksinversion-of-control

small footprint dependency injection java


I am looking for a very lightweight dependency injection framework for java. With minimum possible dependencies and minimum features.

Just something along the following lines: receive a java.util.List of Classes, instantiate them and just auto-wire all the objects one into the other.


Solution

  • I would recommend Spring, since this can provide a small footprint when using only the core packages.

    If you think Spring is overkill, then perhaps PicoContainer, or guice?