I've been wondering this for a while...if i have a nested bean with an id attribute, why can't I look up the nested bean by the id?


Code:
<bean id="myParent" class="x.y.z.Parent">
   <property name="mybean">
       <bean id="myChild" class="java.lang.Object"/>
   </property>
</bean>

context.getBean("myChild") throws BeanNotFoundException