I always find it useful to create simple unit tests to check situations like this: http://pastie.org/2701450
Guice will complain about your example because A isn't an interface. If you switch to using an interface Guice will proxy your circular dependency for you (as a singleton or not). In the non-singleton case a and B.getA() will be distinct. It would be better to refactor your code to avoid the circular dependency though, if possible. -- You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
