Package com.google.inject.grapher
Class TransitiveDependencyVisitor
- java.lang.Object
-
- com.google.inject.spi.DefaultBindingTargetVisitor<Object,Collection<Key<?>>>
-
- com.google.inject.grapher.TransitiveDependencyVisitor
-
- All Implemented Interfaces:
BindingTargetVisitor<Object,Collection<Key<?>>>
public class TransitiveDependencyVisitor extends DefaultBindingTargetVisitor<Object,Collection<Key<?>>>
BindingTargetVisitor
that returns aCollection
of theKey
s of eachBinding
's dependencies. Used byInjectorGrapher
to walk the dependency graph from a starting set ofBinding
s.
-
-
Constructor Summary
Constructors Constructor Description TransitiveDependencyVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Key<?>>
visit(ConstructorBinding<?> binding)
Collection<Key<?>>
visit(ConvertedConstantBinding<?> binding)
Collection<Key<?>>
visit(InstanceBinding<?> binding)
Collection<Key<?>>
visit(LinkedKeyBinding<?> binding)
Collection<Key<?>>
visit(ProviderBinding<?> binding)
Collection<Key<?>>
visit(ProviderInstanceBinding<?> binding)
Collection<Key<?>>
visit(ProviderKeyBinding<?> binding)
Collection<Key<?>>
visitOther(Binding<?> binding)
-
Methods inherited from class com.google.inject.spi.DefaultBindingTargetVisitor
visit, visit
-
-
-
-
Method Detail
-
visit
public Collection<Key<?>> visit(ConstructorBinding<?> binding)
- Specified by:
visit
in interfaceBindingTargetVisitor<Object,Collection<Key<?>>>
- Overrides:
visit
in classDefaultBindingTargetVisitor<Object,Collection<Key<?>>>
-
visit
public Collection<Key<?>> visit(ConvertedConstantBinding<?> binding)
- Specified by:
visit
in interfaceBindingTargetVisitor<Object,Collection<Key<?>>>
- Overrides:
visit
in classDefaultBindingTargetVisitor<Object,Collection<Key<?>>>
-
visit
public Collection<Key<?>> visit(InstanceBinding<?> binding)
- Specified by:
visit
in interfaceBindingTargetVisitor<Object,Collection<Key<?>>>
- Overrides:
visit
in classDefaultBindingTargetVisitor<Object,Collection<Key<?>>>
-
visit
public Collection<Key<?>> visit(LinkedKeyBinding<?> binding)
- Specified by:
visit
in interfaceBindingTargetVisitor<Object,Collection<Key<?>>>
- Overrides:
visit
in classDefaultBindingTargetVisitor<Object,Collection<Key<?>>>
-
visit
public Collection<Key<?>> visit(ProviderBinding<?> binding)
- Specified by:
visit
in interfaceBindingTargetVisitor<Object,Collection<Key<?>>>
- Overrides:
visit
in classDefaultBindingTargetVisitor<Object,Collection<Key<?>>>
-
visit
public Collection<Key<?>> visit(ProviderInstanceBinding<?> binding)
- Specified by:
visit
in interfaceBindingTargetVisitor<Object,Collection<Key<?>>>
- Overrides:
visit
in classDefaultBindingTargetVisitor<Object,Collection<Key<?>>>
-
visit
public Collection<Key<?>> visit(ProviderKeyBinding<?> binding)
- Specified by:
visit
in interfaceBindingTargetVisitor<Object,Collection<Key<?>>>
- Overrides:
visit
in classDefaultBindingTargetVisitor<Object,Collection<Key<?>>>
-
visitOther
public Collection<Key<?>> visitOther(Binding<?> binding)
- Overrides:
visitOther
in classDefaultBindingTargetVisitor<Object,Collection<Key<?>>>
- Since:
- 4.0
-
-