public class TransitiveDependencyVisitor extends DefaultBindingTargetVisitor<Object,Collection<Key<?>>>
BindingTargetVisitor
that returns a
Collection
of the Key
s of each Binding
's
dependencies. Used by InjectorGrapher
to walk the dependency graph
from a starting set of Binding
s.Constructor and Description |
---|
TransitiveDependencyVisitor() |
Modifier and Type | Method and Description |
---|---|
Collection<Key<?>> |
visit(ConstructorBinding<?> binding)
Visit a constructor binding.
|
Collection<Key<?>> |
visit(ConvertedConstantBinding<?> binding)
Visit a binding created from converting a bound instance to a new type.
|
Collection<Key<?>> |
visit(InstanceBinding<?> binding)
Visit a instance binding.
|
Collection<Key<?>> |
visit(LinkedKeyBinding<?> binding)
Visit a linked key binding.
|
Collection<Key<?>> |
visit(ProviderBinding<?> binding)
Visit a binding to a
Provider that delegates to the binding for the
provided type. |
Collection<Key<?>> |
visit(ProviderInstanceBinding<?> binding)
Visit a provider instance binding.
|
Collection<Key<?>> |
visit(ProviderKeyBinding<?> binding)
Visit a provider key binding.
|
Collection<Key<?>> |
visitOther(Binding<?> binding)
Default visit implementation.
|
visit, visit
public Collection<Key<?>> visit(ConstructorBinding<?> binding)
BindingTargetVisitor
constructor
. This target is found only on injector bindings.visit
in interface BindingTargetVisitor<Object,Collection<Key<?>>>
visit
in class DefaultBindingTargetVisitor<Object,Collection<Key<?>>>
public Collection<Key<?>> visit(ConvertedConstantBinding<?> binding)
BindingTargetVisitor
visit
in interface BindingTargetVisitor<Object,Collection<Key<?>>>
visit
in class DefaultBindingTargetVisitor<Object,Collection<Key<?>>>
public Collection<Key<?>> visit(InstanceBinding<?> binding)
BindingTargetVisitor
visit
in interface BindingTargetVisitor<Object,Collection<Key<?>>>
visit
in class DefaultBindingTargetVisitor<Object,Collection<Key<?>>>
public Collection<Key<?>> visit(LinkedKeyBinding<?> binding)
BindingTargetVisitor
visit
in interface BindingTargetVisitor<Object,Collection<Key<?>>>
visit
in class DefaultBindingTargetVisitor<Object,Collection<Key<?>>>
public Collection<Key<?>> visit(ProviderBinding<?> binding)
BindingTargetVisitor
Provider
that delegates to the binding for the
provided type. This target is found only on injector bindings.visit
in interface BindingTargetVisitor<Object,Collection<Key<?>>>
visit
in class DefaultBindingTargetVisitor<Object,Collection<Key<?>>>
public Collection<Key<?>> visit(ProviderInstanceBinding<?> binding)
BindingTargetVisitor
get
method is invoked to resolve
injections. This target is found in both module and injector bindings.visit
in interface BindingTargetVisitor<Object,Collection<Key<?>>>
visit
in class DefaultBindingTargetVisitor<Object,Collection<Key<?>>>
public Collection<Key<?>> visit(ProviderKeyBinding<?> binding)
BindingTargetVisitor
get
method is invoked. This target is found in both module and injector
bindings.visit
in interface BindingTargetVisitor<Object,Collection<Key<?>>>
visit
in class DefaultBindingTargetVisitor<Object,Collection<Key<?>>>
public Collection<Key<?>> visitOther(Binding<?> binding)
DefaultBindingTargetVisitor
null
.visitOther
in class DefaultBindingTargetVisitor<Object,Collection<Key<?>>>