See: Description
Interface | Description |
---|---|
Lazy<T> |
A handle to a lazily-computed value.
|
MembersInjector<T> |
Injects dependencies into the fields and methods on instances of type
T . |
Enum | Description |
---|---|
Provides.Type |
The type of binding into which the return type of the annotated method contributes.
|
Annotation Type | Description |
---|---|
Component |
Annotates an interface or abstract class for which a fully-formed, dependency-injected
implementation is to be generated from a set of Component.modules().
|
MapKey |
It enables to define customized key type annotation for map binding by
annotating an annotation of a
Map 's key type. |
Module |
Annotates a class that contributes to the object graph.
|
Provides |
Annotates methods of a module to create a provider method binding.
|
Subcomponent |
A subcomponent that inherits the bindings from a parent
Component or
Subcomponent . |
The entry point into the API is the Component
, which annotates abstract types for
Dagger 2 to implement. The dependency graph is configured using using annotations such as
Module
, Provides
and Inject
.
dagger.internal.codegen.ComponentProcessor
is the processor responsible for generating
the implementation. Dagger uses the annotation procesor
service loader to automatically configure the processor, so
explict build configuration shouldn't be necessary.
Copyright © 2015 Google, Inc.. All rights reserved.