Interface InjectorGrapher

  • All Known Implementing Classes:
    AbstractInjectorGrapher, GraphvizGrapher

    public interface InjectorGrapher
    Guice injector grapher. Renders the guice dependency graph for an injector. It can render the whole dependency graph or just transitive dependencies of a given set of nodes.
    Since:
    4.0 (since 2.0 as a concrete class with a different API)
    Author:
    phopkins@gmail.com (Pete Hopkins)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void graph​(com.google.inject.Injector injector)
      Graphs the guice dependency graph for the given injector using default starting keys.
      void graph​(com.google.inject.Injector injector, Set<com.google.inject.Key<?>> root)
      Graphs the guice dependency graph for the given injector using the given starting keys and their transitive dependencies.
    • Method Detail

      • graph

        void graph​(com.google.inject.Injector injector)
            throws IOException
        Graphs the guice dependency graph for the given injector using default starting keys.
        Throws:
        IOException
      • graph

        void graph​(com.google.inject.Injector injector,
                   Set<com.google.inject.Key<?>> root)
            throws IOException
        Graphs the guice dependency graph for the given injector using the given starting keys and their transitive dependencies.
        Throws:
        IOException