|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.inject.grapher.AbstractInjectorGrapher
public abstract class AbstractInjectorGrapher
Abstract injector grapher that builds the dependency graph but doesn't render it.
| Nested Class Summary | |
|---|---|
static class |
AbstractInjectorGrapher.GrapherParameters
Parameters used to override default settings of the grapher. |
| Constructor Summary | |
|---|---|
AbstractInjectorGrapher()
|
|
AbstractInjectorGrapher(AbstractInjectorGrapher.GrapherParameters options)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractInjectorGrapher()
public AbstractInjectorGrapher(AbstractInjectorGrapher.GrapherParameters options)
| Method Detail |
|---|
public final void graph(Injector injector)
throws IOException
InjectorGrapher
graph in interface InjectorGrapherIOException
public final void graph(Injector injector,
Set<Key<?>> root)
throws IOException
InjectorGrapher
graph in interface InjectorGrapherIOException
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||