Re: Using Guice in a method that builds something using this

2014-12-22 Thread Tim Boudreau
What you have is a design problem. If A needs B to exist, and B needs A to exist, then either - There is some other implicit object that provides data to both A and B, or - You really have one logical class, and your implementation is trying to pretend it's two The most straightforward way

Re: Using Guice in a method that builds something using this

2014-12-22 Thread Stephan Classen
If I read the example correctly. B does not need A. It just provides a method to retrieve a new instance of A. So A and B should really be 2 separate classes. Am 23. Dezember 2014 03:10:12 MEZ, schrieb Tim Boudreau niftin...@gmail.com: What you have is a design problem. If A needs B to exist,