Package | Description |
---|---|
dagger.model |
This package contains the APIs that are core to Dagger's internal model of bindings and the
binding graph.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<Binding> |
BindingGraph.MaybeBinding.binding()
The binding, or empty if missing.
|
java.util.Optional<Binding> |
BindingGraph.MissingBinding.binding()
Deprecated.
This always returns
Optional.empty() . |
default java.util.Optional<Binding> |
Binding.binding()
Deprecated.
This always returns
Optional.of(this) . |
com.google.common.collect.ImmutableSet<Binding> |
BindingGraph.bindings()
Returns the bindings.
|
com.google.common.collect.ImmutableSet<Binding> |
BindingGraph.bindings(Key key)
Returns the bindings for a key.
|
com.google.common.collect.ImmutableSet<Binding> |
BindingGraph.requestedBindings(Binding binding)
Returns the bindings that a given binding directly request as a dependency.
|
com.google.common.collect.ImmutableSet<Binding> |
BindingGraph.requestingBindings(BindingGraph.MaybeBinding binding)
Returns the bindings that directly request a given binding as a dependency.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableSetMultimap<DependencyRequest,BindingGraph.DependencyEdge> |
BindingGraph.dependencyEdges(Binding binding)
Returns the dependency edges for the dependencies of a binding.
|
com.google.common.collect.ImmutableSet<Binding> |
BindingGraph.requestedBindings(Binding binding)
Returns the bindings that a given binding directly request as a dependency.
|
com.google.common.collect.ImmutableSet<BindingGraph.MaybeBinding> |
BindingGraph.requestedMaybeMissingBindings(Binding binding)
Returns the bindings or missing bindings that a given binding directly requests as a
dependency.
|