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 a Collection of the Keys of each Binding's dependencies. Used by InjectorGrapher to walk the dependency graph from a starting set of Bindings.
    Author:
    phopkins@gmail.com (Pete Hopkins)
    • Constructor Detail

      • TransitiveDependencyVisitor

        public TransitiveDependencyVisitor()
    • Method Detail

      • visit

        public Collection<com.google.inject.Key<?>> visit​(com.google.inject.spi.ConstructorBinding<?> binding)
        Specified by:
        visit in interface com.google.inject.spi.BindingTargetVisitor<Object,​Collection<com.google.inject.Key<?>>>
        Overrides:
        visit in class com.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 interface com.google.inject.spi.BindingTargetVisitor<Object,​Collection<com.google.inject.Key<?>>>
        Overrides:
        visit in class com.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 interface com.google.inject.spi.BindingTargetVisitor<Object,​Collection<com.google.inject.Key<?>>>
        Overrides:
        visit in class com.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 interface com.google.inject.spi.BindingTargetVisitor<Object,​Collection<com.google.inject.Key<?>>>
        Overrides:
        visit in class com.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 interface com.google.inject.spi.BindingTargetVisitor<Object,​Collection<com.google.inject.Key<?>>>
        Overrides:
        visit in class com.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 interface com.google.inject.spi.BindingTargetVisitor<Object,​Collection<com.google.inject.Key<?>>>
        Overrides:
        visit in class com.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 interface com.google.inject.spi.BindingTargetVisitor<Object,​Collection<com.google.inject.Key<?>>>
        Overrides:
        visit in class com.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 class com.google.inject.spi.DefaultBindingTargetVisitor<Object,​Collection<com.google.inject.Key<?>>>
        Since:
        4.0