DI container for Java without @Inject
I'd like to know if there is any DI container for Java world that behaves
close to .NET ones, namely, I want these 2 features:
main requirement - it should work without @Inject annotation. So, if
@Inject is not specified anywhere, and class has single constructor then
container should use this constructor. I know, @Inject annotation is
standard, but I don't like it.
2nd requirement (not necessary at all) - any way to auto-configure (by
some naming conventions etc.)
It looks like Swing and Guice require @Inject, but I will be happy, if I'm
wrong.
No comments:
Post a Comment