public abstract class AbstractInjectorGrapher extends 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,
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 IOException
InjectorGrapher
graph
in interface InjectorGrapher
IOException
public final void graph(Injector injector, Set<Key<?>> root) throws IOException
InjectorGrapher
graph
in interface InjectorGrapher
IOException
protected abstract void reset() throws IOException
IOException
protected abstract void newInterfaceNode(InterfaceNode node) throws IOException
IOException
protected abstract void newImplementationNode(ImplementationNode node) throws IOException
IOException
protected abstract void newInstanceNode(InstanceNode node) throws IOException
IOException
protected abstract void newDependencyEdge(DependencyEdge edge) throws IOException
IOException
protected abstract void newBindingEdge(BindingEdge edge) throws IOException
IOException
protected abstract void postProcess() throws IOException
IOException