|
From: =?iso-8859-1?Q?<jp....@ti...> - 2003-05-28 11:35:08
|
In addition, using the first way ( the same element with either refid att= r either value attr) will be coherent with what is to do with properties = which haven't an array. =0D=0A=0D=0AWe don't have a property and a refPro= perty element. We could have the same remark at this level.=0D=0A=0D=0AOn= all cases, the two levels, "property" and "element" must have the same l= ogic. Either byReference elements are distinct either they are not but us= ing "refid".=0D=0A=0D=0AJean-Pierre=0D=0A=0D=0A---------- Initial Header = -----------=0D=0A=0D=0AFrom : springframework-developer-admin@lists.= sourceforge.net=0D=0ATo : "juergen.hoeller" <juergen.hoeller@wer= k3at.com>=0D=0ACc : "springframework-developer" <springframework= -dev...@li...>=0D=0ADate : Wed, 28 May 2003 13:03= :46 +0200=0D=0ASubject : [Springframework-developer] RE: [Springframework= -developer] Spring bean factory XML format=0D=0A=0D=0AHi Juergen,=0D=0A=0D= =0AI don't agree. The element passes a value, directly or by reference. B= ut the job is the same. Making the difference in the used attribute will = suffice. There is no nature difference between the two cases. Having a co= herent collection (only one kind of sub-elements) should take precedence.= =0D=0AIf a reference element should have much more particular properties= , the scenario could be the other way, but still it's not.=0D=0A=0D=0AJea= n-Pierre=0D=0A =0D=0A=0D=0A---------- Initial Header -----------=0D=0A=0D= =0AFrom : spr...@li...=0D=0A= To : <spr...@li...>=0D=0ACc = : =0D=0ADate : Wed, 28 May 2003 12:41:39 +0200=0D=0ASubject = : RE: [Springframework-developer] Spring bean factory XML format=0D=0A=0D= =0AWhat about mixing references and values in a collection? Would it look= as follows:=0D=0A=0D=0A<bean id=3D"foo">=0D=0A <property name=3D"moo">mo= o</property>=0D=0A <property name=3D"coll">=0D=0A <element refid=3D"alph= a"/>=0D=0A <element refid=3D"beta"/>=0D=0A <element>gamma</element>=0D=0A= </property>=0D=0A</bean>=0D=0A=0D=0ARod's proposed syntax would be like = this:=0D=0A=0D=0A<bean id=3D"foo">=0D=0A <property name=3D"moo">moo</prop= erty>=0D=0A <property name=3D"coll">=0D=0A <ref refid=3D"alpha"/>=0D=0A= <ref refid=3D"beta"/>=0D=0A <value>gamma</value>=0D=0A </property>=0D= =0A</bean>=0D=0A=0D=0AI tend to prefer the latter, as it clearly separate= s references and values.=0D=0A=0D=0AJuergen=0D=0A=0D=0A=0A=0A********** S= PECIAL ADSL **********=0AL'ADSL =E0 partir de 15,95 EUR/mois et le modem = ADSL offert ? C'est en exclusivit=E9 chez Tiscali !=0APour profiter de c= ette offre, cliquez ici: http://register.tiscali.fr/adsl/=0AOffre soumise= =E0 conditions.=0A |