|
From: Isabelle M. <isa...@me...> - 2003-05-28 13:39:46
|
Hi Jean-Pierre, your're right, it's too hot to think clearly right now :-( Isabelle On Wed, May 28, 2003 at 12:44:07PM +0200, jp....@ti... wrote: > Hi Isabelle, > > We are on the same wavelength, just a little "booboo" as you say: > the "element" elements were not closed in your example: > <element refid="alpha"/> > is what you probably would type. ;) > > Jean-Pierre > > ---------- Initial Header ----------- > > From : spr...@li... > To : rod...@in... > Cc : spr...@li... > Date : Wed, 28 May 2003 12:32:42 +0200 > Subject : Re: [Springframework-developer] Spring bean factory XML format > > HI Rod, > > Do it the way JP suggested : > > <bean id="foo"> > <property name="moo">moo</property> > <property name="coll"> > <element refid="alpha"> > <element refid="beta> > </property> > </bean> > > Isabelle > > On Wed, May 28, 2003 at 06:17:54AM -0400, rod...@in... wrote: > > Isabelle, > > > > OK, we can change name -> id when defining all beans, and use > > refid for references. > > > > The only problem I see with your syntax below... > > > > <property name="thefoo" refid="foo/> > > <property name="moo">moo</property> > > > > ...is that I can't see how it would support collections. I > > see this as a major enhancement, possible with the original > > proposal, that had <value> and <ref> subelements. > > > > I can easily change the XML parsing for whatever we agree. > > > > Regards, > > Rod > > > > > Hi Rod, > > > > > > There is one thing I do not like about your proposed > > syntax: you use <ref > > > name="xxx"> is used in two different contexts, one when you > > define a bean > > > that can serve as a reference, and once when you refer to > > such a bean from > > > another bean. > > > That's confusing. It would be better to define with for ex. > > an id attribute, > > > and reference with a refid attribute: > > > > > > <bean name="foo" id="foo"/> > > > <bean name="bar" id="bar"> > > > <property name="thefoo" refid="foo/> > > > <property name="moo">moo</property> > > > </bean> > > > <bean name=baz> > > > <property name="bla">blabla</property> > > > </bean> > > > > > > Note that bean bar can in turn be referenced from other > > beans, thanks to its > > > id attribute. Bean baz cannot be referenced, because it > > doesn't have an id > > > attribute. > > > > > > A validating parser will not help you make sure that bean > > foo really exists > > > when referenced, and neither will a DTD. > > > > > > Isabelle > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: ObjectStore. > > If flattening out C++ or Java code to make your application fit in a > > relational database is painful, don't do it! Check out ObjectStore. > > Now part of Progress Software. http://www.objectstore.net/sourceforge > > _______________________________________________ > > Springframework-developer mailing list > > Spr...@li... > > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > > > -- > Isabelle Muszynski > Software Engineer > Zandweellaan 4 > 2660 Antwerpen > Belgium > Tel. 32-(0)3-830 18 54 > Mobile: 32-(0)485 49 50 89 > Email: isa...@me... > Website: www.meta-logix.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: ObjectStore. > If flattening out C++ or Java code to make your application fit in a > relational database is painful, don't do it! Check out ObjectStore. > Now part of Progress Software. http://www.objectstore.net/sourceforge > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > ********** SPECIAL ADSL ********** > L'ADSL à partir de 15,95 EUR/mois et le modem ADSL offert ? C'est en exclusivité chez Tiscali ! > Pour profiter de cette offre, cliquez ici: http://register.tiscali.fr/adsl/ > Offre soumise à conditions. > > > > -- Isabelle Muszynski Software Engineer Zandweellaan 4 2660 Antwerpen Belgium Tel. 32-(0)3-830 18 54 Mobile: 32-(0)485 49 50 89 Email: isa...@me... Website: www.meta-logix.com |