[SPRNET-1242] Support for collection merging with generic collections Created: 29/Jul/09  Updated: 24/Jun/11  Resolved: 12/May/11

Status: Resolved
Project: Spring.NET
Component/s: Spring-NET-CORE
Affects Version/s: 1.3.0 RC1
Fix Version/s: 1.3.2

Type: Improvement Priority: Minor
Reporter: Mark Pollack Assignee: Steve Bohlen
Resolution: Fixed Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SPRNET-620 Support for Collection Merging in Par... Resolved

 Comments   
Comment by Erich Eichinger [ 04/Sep/09 ]

i guess u r talking about

<object id='parent' isAbstract='true>
<property name="genericProperty">
<list>
<value>someval</value>
</list>
<property>
</object>

<object id='concrete' type='someType'>
<property name="genericProperty">
<list>
<value>otherval</value>
</list>
<property>
</object>

to result in [someval, otherval] to be set on 'genericProperty'?

Comment by Toon Geens [ 10/Jan/11 ]

I'm was looking for this feature too. I was at least expecting this too work for a String type, like this:

<object id="parent" abstract="true">
<property name="myStringList">
<list element-type="string">
<value>someval</value>
</list>
<property>
</object>

<object id="concrete" type="someType" parent="parent">
<property name="myStringList" merge="true">
<list element-type="string">
<value>otherval</value>
</list>
<property>
</object>

This works with a NameValueCollection, but that's of course not a generic case.

Comment by Steve Bohlen [ 12/May/11 ]

Added support for merging of instances of Set<T> and List<T> in property values.

Comment by Sean Hanna [ 24/Jun/11 ]

What about Dictionary?

Generated at Fri Jul 10 06:39:33 UTC 2020 using Jira 8.5.4#805004-sha1:0444eab799707f9ad7b248d69f858774aadfd250.