I try to understand code:
<bean id="topBean" class="com.topBean" >
<property name="helpbean" ref="helpBean" />
<property name="topFolder">
<bean parent="someparent">
<property name="propertyName" value="value1"/>
</bean>
</property>
</bean>
I try to find parent bean with name “someparent” but without success.
Is it allowed?
There has to be a bean called
someParentsomewhere in the context, or in a parent context. It’s not valid otherwise.Remember, contexts can themselves have parent contexts. Beans in a child context can refer to bean in their parent contexts.