Package dagger.producers
This package contains the public API for Dagger 2's producer functionality.
Dagger Producers is an extension to Dagger that implements asynchronous dependency injection in Java.
Extended documentation on Dagger Producers can be found at https://dagger.dev/producers.
-
Interface Summary Interface Description Producer<T> An interface that represents the production of a typeT
. -
Class Summary Class Description Produced<T> An interface that represents the result of a production of typeT
, or an exception that was thrown during that production.Producers Utility methods to createProducer
s. -
Enum Summary Enum Description CancellationPolicy.Propagation Enumeration of the options for what happens to a parent component when one of its child components is cancelled. -
Annotation Types Summary Annotation Type Description CancellationPolicy Annotates a production component or subcomponent to specify its policy when a child component is cancelled.ProducerModule Annotates a class that contributesProduces
bindings to the production component.Produces Annotates methods of a producer module to create a production binding.Production Qualifies a type that will be provided to the framework for use internally.ProductionComponent Annotates an interface or abstract class for which a fully-formed, dependency-injected implementation is to be generated from a set of modules.ProductionComponent.Builder A builder for a production component.ProductionComponent.Factory A factory for a production component.ProductionScope A scope annotation for provision bindings that are tied to the lifetime of aProductionComponent
orProductionSubcomponent
.ProductionSubcomponent A subcomponent that inherits the bindings from a parentComponent
,Subcomponent
,ProductionComponent
, orProductionSubcomponent
.ProductionSubcomponent.Builder A builder for a production subcomponent.ProductionSubcomponent.Factory A factory for a production subcomponent.