views:

431

answers:

3

Are there any tools that can take a fully-constructed/wired Spring application context and export a visualization of it? I'm talking about a live context that shows the order in which aspects were applied, what beans were auto-wired into other beans, etc.

I know it can be done with the context files themselves (re: Spring IDE). However, I believe the new annotation-driven paradigm defeats this approach.

An Eclipse plug-in or command-line solution is preferred, but I'd also be interested to see if anything like this exists at all.

+1  A: 

Are you looking for something like bean graph? It is part of spring ide and can be generated at the project level.

neesh
That's what I referred to above. It's a great tool, but I just checked and while it will display automatically created beans, it doesn't visualize what *will be auto-wired into them*, which for me is much more interesting. Perhaps I'll post to the Spring forums.
Brian Laframboise
Sorry, I am not sure what you mean by "what will be auto-wired into them". The arrows in the bean graph depict interdependencies between beans and what is auto-wired by the spring container. What am I missing?
neesh
Running the Sprint IDE graph tool on a sample project, it visualized Controller beans that would be automatically detected and instantiated, but it did not display Service beans that would be instantiated and autowired into that Controller bean. That's what I want.
Brian Laframboise
A: 

Perhaps you find something with JXInsight http://www.jinspired.com/products/jxinsight/ They seem to have a Spring Extension and they can probably show object graph visualizations.

mhaller
A: 

Spring ME also provides a solution. It has a Maven plugin that will generate dot output.

Wilfred Springer