Coming from .NET, I'm used to Ninject, that's a small simple ioc-container. Is there anything simple and lightweight for Java?
The simpler the better!
Coming from .NET, I'm used to Ninject, that's a small simple ioc-container. Is there anything simple and lightweight for Java?
The simpler the better!
Pico container or google-guice. See a comparison here.
Btw, few people will call spring "ligthweight", but it can be used as such with only the basic features. Hence it's included in the above comparison.
CDI? (almost the same thing as Guice, but is a JSR rather than proprietary)
Silk DI is a 120K jar with no further runtime dependencies needed. So it is way more lightweight than e.g. guice or spring and still smaller as pico-container but has an even more powerful feature set. Also it doesn't cheat by splitting features into a separate additional jars like multibind for guice or the gems for pico-container.