vendredi 5 août 2016

Difference between the @Singleton in module and @Singleton in component in Dagger 2

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