-
Oct 25th, 2009, 10:11 AM
#1
Multiple contexts, stage wiring
Hi,
i have a question. I'm having 2 FlexXMLApplicationContexts in a main application:
- bootstrapContext: setting up logginglevel, loggingtargets
- applicationContext: business objects
So first the boostrapContext is loaded and then the applicationContext is created and loaded. In that scenario i have logging in the way i want and can monitor the application context loading and processing.
This all works fine, but if i want to autowire stage components things break. After debugging and some breakpoints i noticed that the DefaultAutoWireProcessor is only using the bootstrapContext to look up definitions. Apparently the first created context is the one used by the DefaultAutoWireProcessor. Is that correct?
the question: How can i make sure the AutoWiring of stage components is using the applicationContext (which is created and loaded later) instead of the bootstrapContext?
I mean is should be possible to use 2 application constexts, and use the last loaded one for stage wiring, right?
BTW when i remove the bootstrapContext alltogether everything works fine, but don't want to do that ;-)
cheers,
Arnoud
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules