Skip to content

Issues with Google Guice

by Vaibhav Aggarwal on November 29th, 2012
  1. It is impossible to track who is creating an instance of an object
  2. With child injectors it is even harder to track the origin of an object as you might be fooled into believing that the top level injector is doing all the injections
  3. Guice makes it very hard (if not impossible) to specify two different bindings for a class in the same scope. You cannot use two different Gson with different type adapters
  4. There are some classes which create their own injectors (different from child injectors) and hence break the injection chain completely at an arbitrary spot in code
No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS