Circular Dependency in constructors and Dependency Injection

<<by MiÅ¡ko Hevery So you discovered dependency injection and GUICE and you are happily refactoring and writing new tests for you code until you come across this circular reference. class A { final B b; A(B b){ this.b = b; } } class B { final A a; B(){ this.a = new A(this); …>>   (more…)

See original post by Chris Gilmer