Package dagger.producers
Annotation Type ProducerModule
-
@Documented @Target(TYPE) @Retention(RUNTIME) @Beta public @interface ProducerModule
Annotates a class that contributesProduces
bindings to the production component.- Since:
- 2.0
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<?>[]
includes
Additional@ProducerModule
- orModule
-annotated classes from which this module is composed.java.lang.Class<?>[]
subcomponents
AnySubcomponent
- orProductionSubcomponent
-annotated classes which should be children of the component in which this module is installed.
-
-
-
Element Detail
-
includes
java.lang.Class<?>[] includes
Additional@ProducerModule
- orModule
-annotated classes from which this module is composed. The de-duplicated contributions of the modules inincludes
, and of their inclusions recursively, are all contributed to the object graph.- Default:
- {}
-
-
-
subcomponents
java.lang.Class<?>[] subcomponents
AnySubcomponent
- orProductionSubcomponent
-annotated classes which should be children of the component in which this module is installed. A subcomponent may be listed in more than one module in a component.- Since:
- 2.7
- Default:
- {}
-
-