public abstract class AbstractInjectorGrapher extends java.lang.Object implements InjectorGrapher
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractInjectorGrapher.GrapherParameters
Parameters used to override default settings of the grapher.
|
| Constructor and Description |
|---|
AbstractInjectorGrapher() |
AbstractInjectorGrapher(AbstractInjectorGrapher.GrapherParameters options) |
| Modifier and Type | Method and Description |
|---|---|
void |
graph(Injector injector)
Graphs the guice dependency graph for the given injector using default starting keys.
|
void |
graph(Injector injector,
java.util.Set<Key<?>> root)
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 |
newDependencyEdge(DependencyEdge edge)
Adds a new dependency edge to the graph.
|
protected abstract void |
newImplementationNode(ImplementationNode node)
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 |
newInterfaceNode(InterfaceNode node)
Adds a new interface node to the graph.
|
protected abstract void |
postProcess()
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.
|
public AbstractInjectorGrapher()
public AbstractInjectorGrapher(AbstractInjectorGrapher.GrapherParameters options)
public final void graph(Injector injector) throws java.io.IOException
InjectorGraphergraph in interface InjectorGrapherjava.io.IOExceptionpublic final void graph(Injector injector, java.util.Set<Key<?>> root) throws java.io.IOException
InjectorGraphergraph in interface InjectorGrapherjava.io.IOExceptionprotected abstract void reset()
throws java.io.IOException
java.io.IOExceptionprotected abstract void newInterfaceNode(InterfaceNode node) throws java.io.IOException
java.io.IOExceptionprotected abstract void newImplementationNode(ImplementationNode node) throws java.io.IOException
java.io.IOExceptionprotected abstract void newInstanceNode(InstanceNode node) throws java.io.IOException
java.io.IOExceptionprotected abstract void newDependencyEdge(DependencyEdge edge) throws java.io.IOException
java.io.IOExceptionprotected abstract void newBindingEdge(BindingEdge edge) throws java.io.IOException
java.io.IOExceptionprotected abstract void postProcess()
throws java.io.IOException
java.io.IOException