PDA

View Full Version : The Spring IDE generated Graph



jnsunkersett
Jun 15th, 2006, 07:08 AM
Hi,

I have been using Spring IDE 1.3 for some time now.
Its really :cool and helps me navigate (or rather breeze) through multitude of bean context files of my application easily.

A nice to have feature, I would like to propose;

The Graph generated and shown shows the inter-connection between my beans;
If I have a beanA with a property referring to beanB the arrow pointing from beanA to beanB, but that took me some time to decipher.

If instead there could be an arrow from beanB pointing into beanA, it will give the idea; beanB is INJECTED into beanA, which is what is being achieved.

any comments

~g1
PS: my bean context defination for the above example is:

<beans>
<bean id="beanA" class="mypack.ClassA">
<constructor-arg ref="beanB"/>
</bean>

<bean id="beanB" class="mypack.ClassB">
<property name="clazzA" ref="beanA"/>
</bean>
</beans>

jnsunkersett
Jun 15th, 2006, 07:10 AM
I feel such a graph would show any circular dependancy, which currently the Spring-IDE 1.3 does not detect.
It comes to light only when a BeanInstantionException is thrown @ run time.

~g1

zepag
Jun 20th, 2006, 03:34 AM
This is now dealt with in ticket 332 : http://www.springide.org/project/ticket/332