What is the 'include' word used for in dagger. For example from the docs here is a module defined like this:
@Module(
includes = {
DripCoffeeModule.class,
ExecutorModule.class
}
)
public class CoffeeAppModule {
}
Notice how this module which is an app module includes the other modules in it ? why ? what is the usefulness. You can check for the example here
I dont understand the includes keyword in the module annotation, what is it used for ?
from the javadocs its described with the following definition still leaving me confused , can someone provide an example:
includes Additional @Module-annotated classes from which this module is composed.
update: what im thinking include means is that if i have providers in other modules say in module1.java then if i 'include' module1.java in module2.java it can see all the provider methods in it and the scope of module2 has now increased, is this correct ?