@CheckReturnValue @Beta
Package dagger.model
This package contains the APIs that are core to Dagger's internal model of bindings and the
binding graph. The types are shared with the Dagger processor and are exposed to clients of the
Dagger SPI.
Unless otherwise specified, the types/interfaces are only intended to be implemented in this
package (i.e. via @AutoValue
) or by Dagger's processor. This applies to test code as
well, so if you need a fake, please file a feature request instead of implementing it yourself.
-
Interface Summary Interface Description Binding The association between aKey
and the way in which instances of the key are provided.BindingGraph.ChildFactoryMethodEdge An edge that represents a subcomponent factory method linking a parent component to a child subcomponent.BindingGraph.ComponentNode A component node in the graph.BindingGraph.DependencyEdge An edge that represents a dependency on a binding.BindingGraph.Edge An edge in the binding graph.BindingGraph.MaybeBinding A node in the binding graph that is either aBinding
or aBindingGraph.MissingBinding
.BindingGraph.Node A node in the binding graph.BindingGraph.SubcomponentCreatorBindingEdge -
Class Summary Class Description BindingGraph A graph of bindings, dependency requests, and components.BindingGraph.MissingBinding A node in the binding graph that represents a missing binding for a key in a component.ComponentPath A path containing a component and all of its ancestor components.DependencyRequest Represents a request for aKey
at an injection point.DependencyRequest.Builder A builder ofDependencyRequest
s.Key A type and an optional qualifier that is the lookup key for a binding.Key.Builder A builder forKey
s.Key.MultibindingContributionIdentifier An object that identifies a multibinding contribution method and the module class that contributes it to the graph.Scope A representation of aScope
. -
Enum Summary Enum Description BindingKind Represents the different kinds ofBinding
s that can exist in a binding graph.RequestKind Represents the different kinds oftypes
that may be requested as dependencies for the same key.