I have an abstract parent bean that has map property.
This map must be merged with map property of child.
It is work. But when I put this bean as inner in factory – map property seems disappears.
I suppose that fields of inner bean are unavailable for child.
<bean id="parent" factory-bean="factory"
factory-method="createbean">
<constructor-arg>
<bean abstract="true">
<property name="prop" >
<map>
<entry ............
.................
</map
...............
Next bean:
<bean id="child" parent="parent">
Is it correct? Thanks.
Here is a working example:
When the child bean is returned the Properties object passed in the will have the values:
Note that the value of the “Three” key was overridden because it was included in the child bean