public class TransitiveDependencyVisitor extends DefaultBindingTargetVisitor<java.lang.Object,java.util.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 |
---|---|
java.util.Collection<Key<?>> |
visit(ConstructorBinding<?> binding)
Visit a constructor binding.
|
java.util.Collection<Key<?>> |
visit(ConvertedConstantBinding<?> binding)
Visit a binding created from converting a bound instance to a new type.
|
java.util.Collection<Key<?>> |
visit(InstanceBinding<?> binding)
Visit a instance binding.
|
java.util.Collection<Key<?>> |
visit(LinkedKeyBinding<?> binding)
Visit a linked key binding.
|
java.util.Collection<Key<?>> |
visit(ProviderBinding<?> binding)
Visit a binding to a
Provider that delegates to the binding for the
provided type. |
java.util.Collection<Key<?>> |
visit(ProviderInstanceBinding<?> binding)
Visit a provider instance binding.
|
java.util.Collection<Key<?>> |
visit(ProviderKeyBinding<?> binding)
Visit a provider key binding.
|
java.util.Collection<Key<?>> |
visitOther(Binding<?> binding)
Default visit implementation.
|
visit, visit
public java.util.Collection<Key<?>> visit(ConstructorBinding<?> binding)
BindingTargetVisitor
constructor
. This target is found only on injector bindings.visit
in interface BindingTargetVisitor<java.lang.Object,java.util.Collection<Key<?>>>
visit
in class DefaultBindingTargetVisitor<java.lang.Object,java.util.Collection<Key<?>>>
public java.util.Collection<Key<?>> visit(ConvertedConstantBinding<?> binding)
BindingTargetVisitor
visit
in interface BindingTargetVisitor<java.lang.Object,java.util.Collection<Key<?>>>
visit
in class DefaultBindingTargetVisitor<java.lang.Object,java.util.Collection<Key<?>>>
public java.util.Collection<Key<?>> visit(InstanceBinding<?> binding)
BindingTargetVisitor
visit
in interface BindingTargetVisitor<java.lang.Object,java.util.Collection<Key<?>>>
visit
in class DefaultBindingTargetVisitor<java.lang.Object,java.util.Collection<Key<?>>>
public java.util.Collection<Key<?>> visit(LinkedKeyBinding<?> binding)
BindingTargetVisitor
visit
in interface BindingTargetVisitor<java.lang.Object,java.util.Collection<Key<?>>>
visit
in class DefaultBindingTargetVisitor<java.lang.Object,java.util.Collection<Key<?>>>
public java.util.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<java.lang.Object,java.util.Collection<Key<?>>>
visit
in class DefaultBindingTargetVisitor<java.lang.Object,java.util.Collection<Key<?>>>
public java.util.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<java.lang.Object,java.util.Collection<Key<?>>>
visit
in class DefaultBindingTargetVisitor<java.lang.Object,java.util.Collection<Key<?>>>
public java.util.Collection<Key<?>> visit(ProviderKeyBinding<?> binding)
BindingTargetVisitor
get
method is invoked. This target is found in both module and injector
bindings.visit
in interface BindingTargetVisitor<java.lang.Object,java.util.Collection<Key<?>>>
visit
in class DefaultBindingTargetVisitor<java.lang.Object,java.util.Collection<Key<?>>>
public java.util.Collection<Key<?>> visitOther(Binding<?> binding)
DefaultBindingTargetVisitor
null
.visitOther
in class DefaultBindingTargetVisitor<java.lang.Object,java.util.Collection<Key<?>>>