|
From: Guillaume P. <gpo...@gl...> - 2004-09-08 01:59:14
|
Hi Spring folks, Is is planned to change the DTD to allow beans for map keys? Guillaume ----- Original Message ----- From: "Guillaume Poirier" <gpo...@gl...> To: <spr...@li...> Sent: Saturday, September 04, 2004 10:45 AM Subject: Re: [Springframework-user] Map entries with non String key > There was a thread about it a few months ago, but I never saw any decision > made, nor anything changed on the DTD. > > http://article.gmane.org/gmane.comp.java.springframework.devel/4568 > > Guillaume > > ----- Original Message ----- > From: "Christophe Roudet" <cr...@ac...> > To: <spr...@li...> > Sent: Friday, September 03, 2004 3:02 PM > Subject: [Springframework-user] Map entries with non String key > > >> Is there a way to specify the type of the key in a map entry? >> It seems that keys are always processed as Strings. >> >> <property name="mapProperty"> >> <map> >> <entry key="9"> <!-- an integer --> >> <value>just some string</value> >> </entry> >> <entry key="Bean1"> <!-- a Bean --> >> <ref bean="Bean2"/> >> </entry> >> </map> >> </property> >> >> Christophe |