I haven't found any solution to this problem yet.
I haven't found any solution to this problem yet.
You cannot do that right now![]()
Spring configuration does currently allow for string keys in maps only. However, there exists already a jira issue which requests the extension to arbitrary types. So this issue should be solved in a future release.
Regards,
Andreas
I'm glad someone else has found this to be a problem. FYI, the JIRA url is:
http://opensource.atlassian.com/proj...browse/SPR-392
Of course, the next question is: when is RC1 due out? ;-)
In the meantime, (and it's not the cleanest looking solution, but it will work) it would probably take you about 10 minutes to create a new factory bean based off MapFactoryBean and ListFactoryBean, which given an input list consisting of alternating keys and values, would prodouce an output map... That would get you going at least...
Colin Sampaleanu
SpringSource - http://www.springsource.com