|
||||||||||
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...)
to specify an initial set of Class
es 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 Class es 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)
Class
es to use as the starting point for
the graph. The graph will be of these classes 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 |