Im learning Dagger 2, i have noticed that in some examples there is a @Singleton in the module's methods and on other @Singleton on the Component's methods? What is the difference and what exactly a @Singleton annotation on a module's method and on an component's method mean?
Aucun commentaire:
Enregistrer un commentaire