Guowei Lv

1 minute read

In previous post, we replaced our Pure Dependency Injection with Dagger2. But, the conversion is without too much thoughts.

One improvement we can do is to follow Dagger’s convention of using Component as Injector.

We can make the following mental models:

  1. Dagger’s @Module is for creating objects.
  2. Dagger’s @Component is for injecting objects into application classes.
comments powered by Disqus