android - Dagger injects {} method issue -


i know

why need add

injects = {              firstfragment.class,              downloadmanager.class,             bookrefreshtask.class          }  

in application class or module class.

as injecting fragment , activity using graph.inject(this) method

as undestand this.

dagger consists of 2 modules:

  • runtime module (which uses @inject annotations satisfy dependencies @ runtime)
  • compile time module (which uses "injects = {a1.class, a2.class}" check code unsatisfied dependencies).

so price need pay compile time errors handling.


Comments

Popular posts from this blog

Prolog - Listing -

orchardcms - change base url in local copy in Orchard CMS -

linear regression - Trying to get confidence/prediction intervals with `predict.lm` in R, but I keep getting an error regarding my dichotomous variable -