Repository navigation
Description
tony kerz opened SPR-4982 and commented
support cascading merge operation, as suggested here:
currently the merge operation will not effect the nested map under "key_2"...
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">
<bean id="map.abstract" class="org.springframework.beans.factory.config.MapFactoryBean">
<property name="sourceMap">
<map>
<entry key="key_1" value="value_1" />
<entry key="key_2">
<map>
<entry key="key_2_1" value="value_2_1" />
</map>
</entry>
</map>
</property>
</bean>
<bean id="map.concrete" parent="map.abstract">
<property name="sourceMap">
<map merge="true">
<entry key="key_1" value="value_1_new" />
<entry key="key_2">
<map merge="true">
<entry key="key_2_2" value="value_2_2" />
</map>
</entry>
<entry key="key_3" value="value_3" />
</map>
</property>
</bean>
</beans>
Issue Links:
- Introduce 'merge' attribute for util namespace collection elements [SPR-6523] #11189 Introduce 'merge' attribute for util namespace collection elements ("duplicates")
Activity
spring-projects-issues commentedon Apr 3, 2011
Chris Beams commented
Duplicates #11189