Problems while autowiring to from child to parent context
Hello everyone,
we are creating a composite application framework on the top of Spring AS "building blocks" (we do not use Flex modules but our own modular architecture).
The top-level application defines an app context and loads "modules" defined locally (into the same SWF artifact) or remotely, each of them defining a child context. The issue we are facing is that we have not been able to autowire properties of objects created from the children contexts to object instances provided by the top-level one (seems that candidates are only searched into the objectDefinitions from the children). This forces to wire collaborators from parent context using refs.
I could be wrong, but I think that the Java implementation of Spring allows autowiring from child to parent. Is it a bug, are we doing something wrong or is there particular reasons to forbid such practices ? If so, could anyone suggest some sort of approach to avoid using refs ?
Many thanks,
Jef