From limpbizkit on June 23, 2008 12:48:17
It would be great if we had a robust, easy-to-use class that creates graphs from Injectors.
I've attached the source of a proof-of-concept, its source, and a generated image. The application
uses Graphviz, which makes the actual graph part easy. http://www.graphviz.org/ It would be nice if the graphs that were easy to read. There's two major types of edges (Bindings, InjectionPoints ) in the graph, and they should look different. In the attached code, I used different
arrowheads for this. A good implementation could go much further (colours, line styles).
There's a lot of information in an Injector, and a good graph could make understanding it very easy.
It would also be nice if it the grapher had extension hooks.
Attachment: gist
InjectorGrapher.java
Graphed.java
Binary attachments: Picture 3.png
Original issue: http://code.google.com/p/google-guice/issues/detail?id=213
From limpbizkit on June 23, 2008 12:48:17
It would be great if we had a robust, easy-to-use class that creates graphs from Injectors.
I've attached the source of a proof-of-concept, its source, and a generated image. The application
uses Graphviz, which makes the actual graph part easy. http://www.graphviz.org/ It would be nice if the graphs that were easy to read. There's two major types of edges (Bindings, InjectionPoints ) in the graph, and they should look different. In the attached code, I used different
arrowheads for this. A good implementation could go much further (colours, line styles).
There's a lot of information in an Injector, and a good graph could make understanding it very easy.
It would also be nice if it the grapher had extension hooks.
Attachment: gist
InjectorGrapher.java
Graphed.java
Binary attachments: Picture 3.png
Original issue: http://code.google.com/p/google-guice/issues/detail?id=213