|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.inject.grapher.InjectorGrapher
public class InjectorGrapher
Root class for graphing an Injector. Bound in GrapherModule.
Use of(Injector) to specify the Injector to use, and
graph() to graph the Injector using the currently-bound
Renderer.
By default, this will graph the entire Injector. Use
rootedAt(Class...) or rootedAt(Key...) to specify an
initial set of Classes or Keys to use, and this will graph
their transitive bindings and dependencies.
| Constructor Summary | |
|---|---|
InjectorGrapher(BindingTargetVisitor<Object,Collection<Key<?>>> keyVisitor,
BindingTargetVisitor<Object,Void> graphingVisitor,
Renderer renderer)
|
|
| Method Summary | |
|---|---|
void |
graph()
Renders a graph with the bound Renderer. |
InjectorGrapher |
of(Injector injector)
Sets the Injector to graph. |
InjectorGrapher |
rootedAt(Class<?>... classes)
Sets an initial group of Classes to use as the starting point for
the graph. |
InjectorGrapher |
rootedAt(Key<?>... keys)
Sets an initial group of Keys to use as the starting point for
the graph. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public InjectorGrapher(BindingTargetVisitor<Object,Collection<Key<?>>> keyVisitor,
BindingTargetVisitor<Object,Void> graphingVisitor,
Renderer renderer)
| Method Detail |
|---|
public InjectorGrapher of(Injector injector)
Injector to graph.
public InjectorGrapher rootedAt(Class<?>... classes)
Classes to use as the starting point for
the graph. The graph will be of these classes and their transitive
dependencies and bindings.
public InjectorGrapher rootedAt(Key<?>... keys)
Keys to use as the starting point for
the graph. The graph will be of these keys and their transitive
dependencies and bindings.
public void graph()
throws IOException
Renderer. The Injector
must have already been specified with of(Injector).
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||