In better designs, there will be just 4 places where Dagger’s components are being instantiated: sub-class of Application, base class of all app’s Activities, base class of all app’s Fragments, base class of all app’s Services.
IMHO, this new addition to Dagger, so called dagger-android, solves a non-existing problem.
Vasiliy Zukanov
42

How about if you have a Base class like BaseFragment but you want something that is not injected/provided in BaseFragment. You need to have a separate inject(MyFragment) method to get it. It is a bad decision to put all of the required dependecies in the Base class.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.