|
From: Dmitriy K. <dko...@ru...> - 2004-10-07 13:30:53
|
I kinda like property's attributes version. More concise. Dmitriy. jürgen höller [werk3AT] wrote: >Another request to simply <property> usage in XML bean definitions: > > http://opensource.atlassian.com/projects/spring/browse/SPR-379 > >This time, it's not about considering CDATA inside <property>...</property> as value, but rather about further attributes for the <property> tag itself: > > <property name="user" value="admin"/> > <property name="linkFormatter" bean="linkFormatter"/> > >I'd probably name the bean reference attributes differently, i.e. "ref-bean" respectively "ref-local". But the general idea is not bad - it's cleaner than the CDATA-as-value suggestion, I guess. > >Let's compare the currently necessary markup: > > <property name="user"><value>admin</value></property> > <property name="linkFormatter"><ref bean="linkFormatter"/></property> > >Which is clearly more verbose, even if not too much. The main advantage of the attribute version is that it avoids closing tags completely. > >Thoughts? > >Juergen > > >------------------------------------------------------- >This SF.net email is sponsored by: IT Product Guide on ITManagersJournal >Use IT products in your business? Tell us what you think of them. Give us >Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more >http://productguide.itmanagersjournal.com/guidepromo.tmpl >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > |