Hi all,
I am new to STS and Spring so this may be a stupid question.
I am trying to learn someone else's code, so I am generating beans dependency graphs.
I could not figure out how the code was working until I realized that aliased beans were not visible in the dependency graph.
I have the following context:
In core.xml
<bean id="C"
<property name="services" ref="startupServices"/>
</bean>
In local.xml
<bean id="defaultStartupServices"/>
In local.xml
<alias name="defaultStartupServices" alias="startupServices"/>
In container.xml
<import resource="core.xml">
<import resource="local.xml">
<import resource="local-aliases.xml">
I added those 4 files in Beans Support-->Config Files and I checked the option [Enable support for <import/> element ...]
If I ask for a dependency graph for the node in container.xml-beans-beans-C, the dependency to defaultStartupService does not appear.
Can you tell me why ?
Is there a way to resolve alias before the graph is displayed ?
Thanks


Reply With Quote
