Package com.google.inject.grapher
Class AbstractInjectorGrapher
java.lang.Object
com.google.inject.grapher.AbstractInjectorGrapher
- All Implemented Interfaces:
InjectorGrapher
- Direct Known Subclasses:
GraphvizGrapher
Abstract injector grapher that builds the dependency graph but doesn't render it.
- Since:
- 4.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Parameters used to override default settings of the grapher. -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Graphs the guice dependency graph for the given injector using default starting keys.final void
Graphs the guice dependency graph for the given injector using the given starting keys and their transitive dependencies.protected abstract void
newBindingEdge
(BindingEdge edge) Adds a new binding edge to the graph.protected abstract void
Adds a new dependency edge to the graph.protected abstract void
Adds a new implementation node to the graph.protected abstract void
newInstanceNode
(InstanceNode node) Adds a new instance node to the graph.protected abstract void
Adds a new interface node to the graph.protected abstract void
Performs any post processing required after all nodes and edges have been added.protected abstract void
reset()
Resets the state of the grapher before rendering a new graph.
-
Constructor Details
-
AbstractInjectorGrapher
public AbstractInjectorGrapher() -
AbstractInjectorGrapher
-
-
Method Details
-
graph
Description copied from interface:InjectorGrapher
Graphs the guice dependency graph for the given injector using default starting keys.- Specified by:
graph
in interfaceInjectorGrapher
- Throws:
IOException
-
graph
Description copied from interface:InjectorGrapher
Graphs the guice dependency graph for the given injector using the given starting keys and their transitive dependencies.- Specified by:
graph
in interfaceInjectorGrapher
- Throws:
IOException
-
reset
Resets the state of the grapher before rendering a new graph.- Throws:
IOException
-
newInterfaceNode
Adds a new interface node to the graph.- Throws:
IOException
-
newImplementationNode
Adds a new implementation node to the graph.- Throws:
IOException
-
newInstanceNode
Adds a new instance node to the graph.- Throws:
IOException
-
newDependencyEdge
Adds a new dependency edge to the graph.- Throws:
IOException
-
newBindingEdge
Adds a new binding edge to the graph.- Throws:
IOException
-
postProcess
Performs any post processing required after all nodes and edges have been added.- Throws:
IOException
-