Package com.google.inject.grapher
Class TransitiveDependencyVisitor
- java.lang.Object
-
- com.google.inject.spi.DefaultBindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
-
- com.google.inject.grapher.TransitiveDependencyVisitor
-
- All Implemented Interfaces:
com.google.inject.spi.BindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
public class TransitiveDependencyVisitor extends com.google.inject.spi.DefaultBindingTargetVisitor<Object,Collection<com.google.inject.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.- Author:
- phopkins@gmail.com (Pete Hopkins)
-
-
Constructor Summary
Constructors Constructor Description TransitiveDependencyVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<com.google.inject.Key<?>>
visit(com.google.inject.spi.ConstructorBinding<?> binding)
Collection<com.google.inject.Key<?>>
visit(com.google.inject.spi.ConvertedConstantBinding<?> binding)
Collection<com.google.inject.Key<?>>
visit(com.google.inject.spi.InstanceBinding<?> binding)
Collection<com.google.inject.Key<?>>
visit(com.google.inject.spi.LinkedKeyBinding<?> binding)
Collection<com.google.inject.Key<?>>
visit(com.google.inject.spi.ProviderBinding<?> binding)
Collection<com.google.inject.Key<?>>
visit(com.google.inject.spi.ProviderInstanceBinding<?> binding)
Collection<com.google.inject.Key<?>>
visit(com.google.inject.spi.ProviderKeyBinding<?> binding)
Collection<com.google.inject.Key<?>>
visitOther(com.google.inject.Binding<?> binding)
-
-
-
Method Detail
-
visit
public Collection<com.google.inject.Key<?>> visit(com.google.inject.spi.ConstructorBinding<?> binding)
- Specified by:
visit
in interfacecom.google.inject.spi.BindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
- Overrides:
visit
in classcom.google.inject.spi.DefaultBindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
-
visit
public Collection<com.google.inject.Key<?>> visit(com.google.inject.spi.ConvertedConstantBinding<?> binding)
- Specified by:
visit
in interfacecom.google.inject.spi.BindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
- Overrides:
visit
in classcom.google.inject.spi.DefaultBindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
-
visit
public Collection<com.google.inject.Key<?>> visit(com.google.inject.spi.InstanceBinding<?> binding)
- Specified by:
visit
in interfacecom.google.inject.spi.BindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
- Overrides:
visit
in classcom.google.inject.spi.DefaultBindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
-
visit
public Collection<com.google.inject.Key<?>> visit(com.google.inject.spi.LinkedKeyBinding<?> binding)
- Specified by:
visit
in interfacecom.google.inject.spi.BindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
- Overrides:
visit
in classcom.google.inject.spi.DefaultBindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
-
visit
public Collection<com.google.inject.Key<?>> visit(com.google.inject.spi.ProviderBinding<?> binding)
- Specified by:
visit
in interfacecom.google.inject.spi.BindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
- Overrides:
visit
in classcom.google.inject.spi.DefaultBindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
-
visit
public Collection<com.google.inject.Key<?>> visit(com.google.inject.spi.ProviderInstanceBinding<?> binding)
- Specified by:
visit
in interfacecom.google.inject.spi.BindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
- Overrides:
visit
in classcom.google.inject.spi.DefaultBindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
-
visit
public Collection<com.google.inject.Key<?>> visit(com.google.inject.spi.ProviderKeyBinding<?> binding)
- Specified by:
visit
in interfacecom.google.inject.spi.BindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
- Overrides:
visit
in classcom.google.inject.spi.DefaultBindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
-
visitOther
public Collection<com.google.inject.Key<?>> visitOther(com.google.inject.Binding<?> binding)
- Overrides:
visitOther
in classcom.google.inject.spi.DefaultBindingTargetVisitor<Object,Collection<com.google.inject.Key<?>>>
- Since:
- 4.0
-
-