Hi!
I would like to be able to define an XMLApplicationContext as a bean in another
XMLApplicationContext. I also want to set this other context as the parent of the first one.
What I'm looking for I guess is an expansion of the ref element, so I could define my
ApplicationContext bean like:
<bean id="myAppContext"
class="ClassPathXmlApplicationContext">
<constructor-arg index=0><value>myAppContext.xml</value></constructor-arg>
<constructor-arg index=1><ref this/></constructor-arg>
</bean>
...where <ref this/> (or something similar) would set an argument/property with type
ApplicationContext, and the value is the ApplicationContext holding the defined bean.
It this possible? And when will I see a 1.1.2 release with this implemented? 8)
-Thomas
PS! Generally I would like to see all org.springframework public code implemented to
be used in the spring framework (conforming to JavaBeans conventions)!


Reply With Quote