public abstract class

AbstractInjectorGrapher

extends Object
implements InjectorGrapher
java.lang.Object
   ↳ com.google.inject.grapher.AbstractInjectorGrapher
Known Direct Subclasses

Class Overview

Abstract injector grapher that builds the dependency graph but doesn't render it.

Summary

Nested Classes
class AbstractInjectorGrapher.GrapherParameters Parameters used to override default settings of the grapher. 
Public Constructors
AbstractInjectorGrapher()
AbstractInjectorGrapher(AbstractInjectorGrapher.GrapherParameters options)
Public Methods
final void graph(Injector injector)
Graphs the guice dependency graph for the given injector using default starting keys.
final void graph(Injector injector, Set<Key<?>> root)
Graphs the guice dependency graph for the given injector using the given starting keys and their transitive dependencies.
Protected Methods
abstract void newBindingEdge(BindingEdge edge)
Adds a new binding edge to the graph.
abstract void newDependencyEdge(DependencyEdge edge)
Adds a new dependency edge to the graph.
abstract void newImplementationNode(ImplementationNode node)
Adds a new implementation node to the graph.
abstract void newInstanceNode(InstanceNode node)
Adds a new instance node to the graph.
abstract void newInterfaceNode(InterfaceNode node)
Adds a new interface node to the graph.
abstract void postProcess()
Performs any post processing required after all nodes and edges have been added.
abstract void reset()
Resets the state of the grapher before rendering a new graph.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.inject.grapher.InjectorGrapher

Public Constructors

public AbstractInjectorGrapher ()

public AbstractInjectorGrapher (AbstractInjectorGrapher.GrapherParameters options)

Public Methods

public final void graph (Injector injector)

Graphs the guice dependency graph for the given injector using default starting keys.

Throws
IOException

public final void graph (Injector injector, Set<Key<?>> root)

Graphs the guice dependency graph for the given injector using the given starting keys and their transitive dependencies.

Throws
IOException

Protected Methods

protected abstract void newBindingEdge (BindingEdge edge)

Adds a new binding edge to the graph.

Throws
IOException

protected abstract void newDependencyEdge (DependencyEdge edge)

Adds a new dependency edge to the graph.

Throws
IOException

protected abstract void newImplementationNode (ImplementationNode node)

Adds a new implementation node to the graph.

Throws
IOException

protected abstract void newInstanceNode (InstanceNode node)

Adds a new instance node to the graph.

Throws
IOException

protected abstract void newInterfaceNode (InterfaceNode node)

Adds a new interface node to the graph.

Throws
IOException

protected abstract void postProcess ()

Performs any post processing required after all nodes and edges have been added.

Throws
IOException

protected abstract void reset ()

Resets the state of the grapher before rendering a new graph.

Throws
IOException