Re:Better Java – Resources for Writing Modern Java
by benjiweber on Sunday September 20, 2015 @02:38AM
(#10246758)
By using a DI framework to wire up constructors you tend to use the compile-time checking that your app is wired correctly. Which is unfortunate. You only find out when you try to run it.
Perhaps things being too big to wire together manually is a smell that the application is getting rather large.
There are also other patterns that can be used to make manual dependency injection less of a pain. I wrote about some of them here
http://benjiweber.co.uk/blog/2014/09/13/frameworkless-depend...
Regarding the second: I think circular dependencies should be avoided whenever possible so I view the difficulty constructors create there as advantage rather than a problem.
https://en.wikipedia.org/wiki/Circular_dependency#Problems_o...