Nested/Recursive Injections with Dagger
问题 When using Dagger, what approaches will allow for free/easy instantiation of @Inject fields on objects that are also instantiated through injection. For example, the code below will inject an object of type Bar into a given Foo object. It will do this in either of the two ways displayed. However, the Sly field of each Bar object is not matching that behavior. Foo public class Foo { @Inject Bar bar; public String getValue() { return "Foo's bar value: " + bar.getValue(); } } Bang public class