views:

102

answers:

2

Do any inversion of control / dependency injection framworks support viewing the object dependencies that have been registered? This is not to execute the code, but to better understand it. It seems that a graph based on the information it has (class A depends on B and C, class B dependencs on C and E, etc) would really document a system well.

I'm using Castle Windsor at the moment, but wouldn't mind trying a different framework for this functionality.

+3  A: 
Robert Munteanu
+2  A: 

Here's a little console application that'll output the dependency graph of a Windsor container. Text-only, but still very useful.

I recently blogged about showing all component dependencies as a proper graph. Sample output (scaled down):

windsor dependencies

Mauricio Scheffer
Well my next question is "what API did they use?", so this is perfect.
Frank Schwieterman