From: Aleksandar S. <al...@se...> - 2006-10-24 20:37:03
|
Hi Rob, XmlApplicationContext has an overloaded constructor. Several of the overloads accepts parent context instance as one of the parameters, which will do exactly what you need, if I understood correctly. One thing to keep in mind is that object definitions in the child context can "see" definitions from the parent context, but the opposite is not true -- child context definitions are not accessible from the parent context. - Aleks _____ From: spr...@li... [mailto:spr...@li...] On Behalf Of Robert Biernat Sent: Monday, October 23, 2006 3:11 AM To: 'spr...@li...' Subject: [Springnet-developer] configuring child application contexts Hi, I have a few components defined in my app context which need to have a child application context instance injected into them. I can easily define an object of type XmlApplicationContext specifying the xml config resources, but I need to set the parent context, as there are object definitions in the child context that refer to objects in the parent. Is there a way in my object definition I can do this? Rob |