- Binding - Interface in dagger.model
-
The association between a
Key
and the way in which instances of the key are provided.
- binding() - Method in interface dagger.model.Binding
-
- binding() - Method in interface dagger.model.BindingGraph.MaybeBinding
-
The binding, or empty if missing.
- binding() - Method in class dagger.model.BindingGraph.MissingBinding
-
- bindingElement() - Method in interface dagger.model.Binding
-
The Element
that declares this binding.
- bindingElement() - Method in class dagger.model.Key.MultibindingContributionIdentifier
-
- BindingGraph - Class in dagger.model
-
A graph of bindings, dependency requests, and components.
- BindingGraph.ChildFactoryMethodEdge - Interface in dagger.model
-
An edge that represents a subcomponent factory method linking a parent component to a child
subcomponent.
- BindingGraph.ComponentNode - Interface in dagger.model
-
A component node in the graph.
- BindingGraph.DependencyEdge - Interface in dagger.model
-
An edge that represents a dependency on a binding.
- BindingGraph.Edge - Interface in dagger.model
-
An edge in the binding graph.
- BindingGraph.MaybeBinding - Interface in dagger.model
-
- BindingGraph.MissingBinding - Class in dagger.model
-
A node in the binding graph that represents a missing binding for a key in a component.
- BindingGraph.Node - Interface in dagger.model
-
A node in the binding graph.
- BindingGraph.SubcomponentBuilderBindingEdge - Interface in dagger.model
-
An edge that represents the link between a parent component and a child subcomponent implied by
a subcomponent builder binding.
- BindingGraphPlugin - Interface in dagger.spi
-
- BindingKind - Enum in dagger.model
-
Represents the different kinds of
Binding
s that can exist in a binding graph.
- bindings() - Method in class dagger.model.BindingGraph
-
Returns the bindings.
- bindings(Key) - Method in class dagger.model.BindingGraph
-
Returns the bindings for a key.
- bindingTo(SocketAddress) - Static method in class dagger.grpc.server.NettyServerModule
-
A module that binds to socketAddress
.
- bindingToPort(int) - Static method in class dagger.grpc.server.NettyServerModule
-
A module that binds to port
on the wildcard address.
- Binds - Annotation Type in dagger
-
Annotates
abstract methods of a
Module
that delegate bindings.
- BindsInstance - Annotation Type in dagger
-
Marks a method on a component builder or subcomponent builder that allows an instance to be bound
to some type within the component.
- BindsOptionalOf - Annotation Type in dagger
-
Annotates methods that declare bindings for Optional
containers of values from bindings
that may or may not be present in the component.
- broadcastReceiverInjector() - Method in class dagger.android.DaggerApplication
-
- broadcastReceiverInjector() - Method in interface dagger.android.HasBroadcastReceiverInjector
-
- build() - Method in class dagger.android.AndroidInjector.Builder
-
- build() - Method in class dagger.model.DependencyRequest.Builder
-
- build() - Method in class dagger.model.Key.Builder
-
- Builder() - Constructor for class dagger.android.AndroidInjector.Builder
-
- builder() - Static method in class dagger.model.DependencyRequest
-
Returns a new builder of dependency requests.
- Builder() - Constructor for class dagger.model.DependencyRequest.Builder
-
- builder(TypeMirror) - Static method in class dagger.model.Key
-
Returns a builder for
Key
s.
- Builder() - Constructor for class dagger.model.Key.Builder
-
- CallScoped - Annotation Type in dagger.grpc.server
-
A scope that lasts as long as a single gRPC ServerCall
.
- CancellationPolicy - Annotation Type in dagger.producers
-
Annotates a production component or subcomponent to specify its policy when a child component is
cancelled.
- CancellationPolicy.Propagation - Enum in dagger.producers
-
Enumeration of the options for what happens to a parent component when one of its child
components is cancelled.
- ClassKey - Annotation Type in dagger.multibindings
-
A
MapKey
annotation for maps with
Class<?>
keys.
- Component - Annotation Type in dagger
-
Annotates an interface or abstract class for which a fully-formed, dependency-injected
implementation is to be generated from a set of
Component.modules().
- Component.Builder - Annotation Type in dagger
-
A builder for a component.
- componentNode(ComponentPath) - Method in class dagger.model.BindingGraph
-
Returns the component node for a component.
- componentNodes() - Method in class dagger.model.BindingGraph
-
Returns the component nodes.
- componentNodes(TypeElement) - Method in class dagger.model.BindingGraph
-
Returns the component nodes for a component.
- componentPath() - Method in interface dagger.model.Binding
-
- componentPath() - Method in interface dagger.model.BindingGraph.ComponentNode
-
The component represented by this node.
- componentPath() - Method in interface dagger.model.BindingGraph.MaybeBinding
-
The component that owns the binding, or in which the binding is missing.
- componentPath() - Method in class dagger.model.BindingGraph.MissingBinding
-
The component in which the binding is missing.
- componentPath() - Method in interface dagger.model.BindingGraph.Node
-
The component this node belongs to.
- ComponentPath - Class in dagger.model
-
A path containing a component and all of its ancestor components.
- ComponentPath() - Constructor for class dagger.model.ComponentPath
-
- components() - Method in class dagger.model.ComponentPath
-
- contentProviderInjector() - Method in class dagger.android.DaggerApplication
-
- contentProviderInjector() - Method in interface dagger.android.HasContentProviderInjector
-
- ContributesAndroidInjector - Annotation Type in dagger.android
-
- contributingModule() - Method in interface dagger.model.Binding
-
The TypeElement
of the module which contributes this binding.
- create(T) - Method in class dagger.android.AndroidInjector.Builder
-
- create(T) - Method in interface dagger.android.AndroidInjector.Factory
-
- create(Iterable<TypeElement>) - Static method in class dagger.model.ComponentPath
-
- create(Class<?>) - Static method in class dagger.producers.monitoring.ProducerToken
-
Creates a token for a class token that represents the generated factory for a producer method.
- create(String) - Static method in class dagger.producers.monitoring.ProducerToken
-
Creates a token for a producer method.
- create(Object) - Method in class dagger.producers.monitoring.ProductionComponentMonitor.Factory
-
Creates a component-specific monitor when the component is created.
- create(Object) - Method in interface dagger.producers.monitoring.ProductionComponentTimingRecorder.Factory
-
Creates a component-specific timing recorder when the component is created.
- create(Object) - Method in class dagger.producers.monitoring.TimingProductionComponentMonitor.Factory
-
- currentComponent() - Method in class dagger.model.ComponentPath
-
Returns the component at the end of the path.
- CurrentContextModule - Class in dagger.grpc.server
-
Provides the current Context
.
- CurrentContextModule() - Constructor for class dagger.grpc.server.CurrentContextModule
-
- dagger - package dagger
-
This package contains the public API for the
Dagger 2 dependency
injection framework.
- dagger.android - package dagger.android
-
APIs to assist with performing injection on Android.
- dagger.android.internal - package dagger.android.internal
-
- dagger.android.support - package dagger.android.support
-
- dagger.grpc.server - package dagger.grpc.server
-
- dagger.grpc.server.processor - package dagger.grpc.server.processor
-
- dagger.model - package dagger.model
-
This package contains the APIs that are core to Dagger's internal model of bindings and the
binding graph.
- dagger.multibindings - package dagger.multibindings
-
This package contains the API by which Dagger allows you to bind several objects into a
collection that can be injected without depending directly on each of the individual bindings.
- dagger.producers - package dagger.producers
-
This package contains the public API for Dagger 2's producer functionality.
- dagger.producers.monitoring - package dagger.producers.monitoring
-
This package provides hooks for monitoring producers.
- dagger.spi - package dagger.spi
-
This package contains the Service Provider interface (SPI) to the
dagger.model
APIs at
annotation-processing-time.
- DaggerActivity - Class in dagger.android
-
- DaggerActivity() - Constructor for class dagger.android.DaggerActivity
-
- DaggerAppCompatActivity - Class in dagger.android.support
-
- DaggerAppCompatActivity() - Constructor for class dagger.android.support.DaggerAppCompatActivity
-
- DaggerAppCompatDialogFragment - Class in dagger.android.support
-
- DaggerAppCompatDialogFragment() - Constructor for class dagger.android.support.DaggerAppCompatDialogFragment
-
- DaggerApplication - Class in dagger.android
-
An Application
that injects its members and can be used to inject Activity
s,
Fragment
s, Service
s, BroadcastReceiver
s and ContentProvider
s
attached to it.
- DaggerApplication() - Constructor for class dagger.android.DaggerApplication
-
- DaggerApplication - Class in dagger.android.support
-
An Application
that injects its members and can be used to inject Activity
s, framework fragments, support fragments, Service
s, BroadcastReceiver
s, and ContentProvider
s attached to it.
- DaggerApplication() - Constructor for class dagger.android.support.DaggerApplication
-
- DaggerBroadcastReceiver - Class in dagger.android
-
- DaggerBroadcastReceiver() - Constructor for class dagger.android.DaggerBroadcastReceiver
-
- DaggerContentProvider - Class in dagger.android
-
- DaggerContentProvider() - Constructor for class dagger.android.DaggerContentProvider
-
- DaggerDialogFragment - Class in dagger.android
-
- DaggerDialogFragment() - Constructor for class dagger.android.DaggerDialogFragment
-
Deprecated.
- DaggerDialogFragment - Class in dagger.android.support
-
- DaggerDialogFragment() - Constructor for class dagger.android.support.DaggerDialogFragment
-
- DaggerFragment - Class in dagger.android
-
- DaggerFragment() - Constructor for class dagger.android.DaggerFragment
-
Deprecated.
- DaggerFragment - Class in dagger.android.support
-
- DaggerFragment() - Constructor for class dagger.android.support.DaggerFragment
-
- DaggerIntentService - Class in dagger.android
-
- DaggerIntentService(String) - Constructor for class dagger.android.DaggerIntentService
-
- DaggerService - Class in dagger.android
-
- DaggerService() - Constructor for class dagger.android.DaggerService
-
- declaringModules() - Method in interface dagger.model.BindingGraph.SubcomponentBuilderBindingEdge
-
- delegatingProductionComponentTimingRecorderFactory(Collection<ProductionComponentTimingRecorder.Factory>) - Static method in class dagger.producers.monitoring.TimingRecorders
-
Returns a timing recorder factory that delegates to the given factories, and ensures that any
method called on this object, even transitively, does not throw a RuntimeException
or
return null.
- dependencies() - Method in interface dagger.model.Binding
-
The dependencies of this binding.
- dependencyEdges() - Method in class dagger.model.BindingGraph
-
Returns the dependency edges.
- dependencyEdges(Binding) - Method in class dagger.model.BindingGraph
-
Returns the dependency edges for the dependencies of a binding.
- dependencyEdges(DependencyRequest) - Method in class dagger.model.BindingGraph
-
Returns the dependency edges for a dependency request.
- dependencyRequest() - Method in interface dagger.model.BindingGraph.DependencyEdge
-
The dependency request.
- DependencyRequest - Class in dagger.model
-
Represents a request for a
Key
at an injection point.
- DependencyRequest() - Constructor for class dagger.model.DependencyRequest
-
- DependencyRequest.Builder - Class in dagger.model
-
- DiagnosticReporter - Interface in dagger.spi
-
- DispatchingAndroidInjector<T> - Class in dagger.android
-
Performs members-injection on instances of core Android types (e.g.
- DispatchingAndroidInjector.InvalidInjectorBindingException - Exception in dagger.android
-
- immediateFailedProducer(Throwable) - Static method in class dagger.producers.Producers
-
Returns a producer that fails with the given exception.
- immediateProducer(T) - Static method in class dagger.producers.Producers
-
Returns a producer that succeeds with the given value.
- initElements(Elements) - Method in interface dagger.spi.BindingGraphPlugin
-
Initializes this plugin with a Elements
instance.
- initFiler(Filer) - Method in interface dagger.spi.BindingGraphPlugin
-
Initializes this plugin with a Filer
that it can use to write Java or other files based
on the binding graph.
- initOptions(Map<String, String>) - Method in interface dagger.spi.BindingGraphPlugin
-
- initSteps() - Method in class dagger.grpc.server.processor.GrpcServiceProcessor
-
- initTypes(Types) - Method in interface dagger.spi.BindingGraphPlugin
-
Initializes this plugin with a Types
instance.
- inject(Activity) - Static method in class dagger.android.AndroidInjection
-
Injects
activity
if an associated
AndroidInjector
implementation can be found,
otherwise throws an
IllegalArgumentException
.
- inject(Fragment) - Static method in class dagger.android.AndroidInjection
-
Injects
fragment
if an associated
AndroidInjector
implementation can be found,
otherwise throws an
IllegalArgumentException
.
- inject(Service) - Static method in class dagger.android.AndroidInjection
-
Injects
service
if an associated
AndroidInjector
implementation can be found,
otherwise throws an
IllegalArgumentException
.
- inject(BroadcastReceiver, Context) - Static method in class dagger.android.AndroidInjection
-
Injects
broadcastReceiver
if an associated
AndroidInjector
implementation can
be found, otherwise throws an
IllegalArgumentException
.
- inject(ContentProvider) - Static method in class dagger.android.AndroidInjection
-
Injects
contentProvider
if an associated
AndroidInjector
implementation can be
found, otherwise throws an
IllegalArgumentException
.
- inject(T) - Method in interface dagger.android.AndroidInjector
-
Injects the members of instance
.
- inject(T) - Method in class dagger.android.DispatchingAndroidInjector
-
Performs members-injection on instance
.
- inject(Fragment) - Static method in class dagger.android.support.AndroidSupportInjection
-
Injects
fragment
if an associated
AndroidInjector
implementation
can be found, otherwise throws an
IllegalArgumentException
.
- injectMembers(T) - Method in interface dagger.MembersInjector
-
Injects dependencies into the fields and methods of instance
.
- InProcessServerModule - Class in dagger.grpc.server
-
Installing this module into a @Singleton
component means the component can
provide a Server
that serves in-process requests.
- IntKey - Annotation Type in dagger.multibindings
-
A
MapKey
annotation for maps with
int
keys.
- IntoMap - Annotation Type in dagger.multibindings
-
The method's return type forms the type argument for the value of a Map<K, Provider<V>>
,
and the combination of the annotated key and the returned value is contributed to the map as a
key/value pair.
- IntoSet - Annotation Type in dagger.multibindings
-
The method's return type forms the generic type argument of a Set<T>
, and the returned
value is contributed to the set.
- isEntryPoint() - Method in interface dagger.model.BindingGraph.DependencyEdge
-
Returns true
if this edge represents an entry point.
- isModuleBindingGraph() - Method in class dagger.model.BindingGraph
-
Returns true
if this graph was constructed from a module for module binding validation.
- isMultibinding() - Method in enum dagger.model.BindingKind
-
Returns true
if this is a kind of multibinding (not a contribution to a multibinding,
but the multibinding itself).
- isNullable() - Method in interface dagger.model.Binding
-
- isNullable(boolean) - Method in class dagger.model.DependencyRequest.Builder
-
- isNullable() - Method in class dagger.model.DependencyRequest
-
Returns true
if this request allows null objects.
- isPartialBindingGraph() - Method in class dagger.model.BindingGraph
-
- isProduction() - Method in interface dagger.model.Binding
-
Returns true
if this is a production binding, e.g.
- isProductionScope() - Method in class dagger.model.Scope
-
- isReusable() - Method in class dagger.model.Scope
-
Returns
true
if this scope is the
@Reusable
scope.
- isScope(AnnotationMirror) - Static method in class dagger.model.Scope
-
- isScope(TypeElement) - Static method in class dagger.model.Scope
-
Returns true
if scopeAnnotationType
is a Scope
annotation.
- isSingleton() - Method in class dagger.model.Scope
-
Returns true
if this scope is the @Singleton
scope.
- isSubcomponent() - Method in interface dagger.model.BindingGraph.ComponentNode
-
Returns true
if the component is a @Subcomponent
or
@ProductionSubcomponent
.
- ready() - Method in class dagger.producers.monitoring.ProducerMonitor
-
Called when all of the producer's inputs are available.
- recordFailure(Throwable, long) - Method in class dagger.producers.monitoring.ProducerTimingRecorder
-
Reports that the producer's future has failed with the given statistics.
- recordMethod(long, long) - Method in class dagger.producers.monitoring.ProducerTimingRecorder
-
Reports that the producer method has finished executing with the given statistics.
- recordSkip(Throwable) - Method in class dagger.producers.monitoring.ProducerTimingRecorder
-
Reports that the producer was skipped because one of its inputs failed.
- recordSuccess(long) - Method in class dagger.producers.monitoring.ProducerTimingRecorder
-
Reports that the producer's future has succeeded with the given statistics.
- reportBinding(Diagnostic.Kind, BindingGraph.MaybeBinding, String) - Method in interface dagger.spi.DiagnosticReporter
-
Reports a diagnostic for a binding or missing binding.
- reportBinding(Diagnostic.Kind, BindingGraph.MaybeBinding, String, Object, Object...) - Method in interface dagger.spi.DiagnosticReporter
-
Reports a diagnostic for a binding or missing binding.
- reportComponent(Diagnostic.Kind, BindingGraph.ComponentNode, String) - Method in interface dagger.spi.DiagnosticReporter
-
Reports a diagnostic for a component.
- reportComponent(Diagnostic.Kind, BindingGraph.ComponentNode, String, Object, Object...) - Method in interface dagger.spi.DiagnosticReporter
-
Reports a diagnostic for a component.
- reportDependency(Diagnostic.Kind, BindingGraph.DependencyEdge, String) - Method in interface dagger.spi.DiagnosticReporter
-
Reports a diagnostic for a dependency.
- reportDependency(Diagnostic.Kind, BindingGraph.DependencyEdge, String, Object, Object...) - Method in interface dagger.spi.DiagnosticReporter
-
Reports a diagnostic for a dependency.
- reportSubcomponentFactoryMethod(Diagnostic.Kind, BindingGraph.ChildFactoryMethodEdge, String) - Method in interface dagger.spi.DiagnosticReporter
-
Reports a diagnostic for a subcomponent factory method.
- reportSubcomponentFactoryMethod(Diagnostic.Kind, BindingGraph.ChildFactoryMethodEdge, String, Object, Object...) - Method in interface dagger.spi.DiagnosticReporter
-
Reports a diagnostic for a subcomponent factory method.
- requested() - Method in class dagger.producers.monitoring.ProducerMonitor
-
Called when the producer's output is requested; that is, when the first method is called that
requires the production of this producer's output.
- requestedBindings(Binding) - Method in class dagger.model.BindingGraph
-
Returns the bindings that a given binding directly request as a dependency.
- requestedMaybeMissingBindings(Binding) - Method in class dagger.model.BindingGraph
-
Returns the bindings or missing bindings that a given binding directly requests as a
dependency.
- requestElement(Element) - Method in class dagger.model.DependencyRequest.Builder
-
- requestElement() - Method in class dagger.model.DependencyRequest
-
The element that declares this dependency request.
- requestingBindings(BindingGraph.MaybeBinding) - Method in class dagger.model.BindingGraph
-
Returns the bindings that directly request a given binding as a dependency.
- RequestKind - Enum in dagger.model
-
Represents the different kinds of types
that may be
requested as dependencies for the same key.
- requiresModuleInstance() - Method in interface dagger.model.Binding
-
- Reusable - Annotation Type in dagger
-
A scope that indicates that the object returned by a binding may be (but might not be) reused.
- rootComponent() - Method in class dagger.model.ComponentPath
-
- rootComponentNode() - Method in class dagger.model.BindingGraph
-
Returns the component node for the root component.