Hi Martin,
thanks for answering.
Accessing the parent from the child is exactly what I'm trying to do. To clarify, if I declare an object in the parent context :
Code:
<object id="a" class="tld.org.projet.A"/>
and refer to the object A in the child context :
Code:
<object id="b" class="tld.org.projet.B">
<property name="refToA" ref="a"/>
</object>
... everything works fine. Using the same declaration in the parent context and trying to autowire the refToA property :
Code:
public class B
{
[Autowired]
public var refToA : A;
}
... Spring complains it does not find any candidate for AW. As B has been created by the object factory corresponding to the child context the autowiring attempt is performed at the child level.