graphing binding dependencies

44 views
Skip to first unread message

Kevin Burton

unread,
Oct 3, 2014, 5:18:29 PM10/3/14
to google...@googlegroups.com
on startup it would be nice to graph the dependencies of a daemon so I can see what the injection looks like.

I noticed there was a GraphViz module...

But this requires the Linux C binary and I'd like to not have to require packages.

IS there a way to render this just with Java to textual representation?

Is it not possible to render because it may not be a planar graph?

I would have assumed that you must setup your dependencies so it's a DAG with no cycles.

Thanks

Tavian Barnes

unread,
Oct 12, 2014, 5:37:44 PM10/12/14
to google...@googlegroups.com
A DAG is not necessarily planar as it may have undirected cycles.

Anyway I presume this doesn't exist just because rendering graphs is fairly difficult and it's easier to rely on GraphViz to do it.  And a complicated hierarchy would be hard to read from the console.

Kevin Burton

unread,
Oct 12, 2014, 6:24:44 PM10/12/14
to google...@googlegroups.com
Yeah.. I think your right.  I was thinking that one way to mitigate this is to dump the graph file if you fail to start.  Then you can just view this on your workstation.

Brian Pontarelli

unread,
Oct 13, 2014, 8:59:12 AM10/13/14
to google...@googlegroups.com
Someone might look at the Gradle graph code. It prints out a decent ascii format. It might be something from Ivy.

— Brian

--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-guice...@googlegroups.com.
To post to this group, send email to google...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-guice.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/ff9b1c34-fae1-427e-8c8b-7a0f1e90f3ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages