|
From: Kopylenko, D. <dko...@ac...> - 2003-05-28 17:50:57
|
I'm happy here :-) -----Original Message----- From: Rod Johnson [mailto:rod...@in...] Sent: Wednesday, May 28, 2003 12:16 PM To: jp....@ti... Cc: isabelle; springframework-developer Subject: Re: Re: [Springframework-developer] Spring bean factory XML format Let's take the following (which I posted earlier today) as the basis for discussion. JP is happy. Is everyone else happy with this, or have any suggestions? I've written a DTD, which makes authoring fairly easy (although the Eclipse XML editor isn't enforcing correct referencing): <bean class="MyClass" id="foos" singleton="false> <property name="foo"><value>FOO</value></property> <property name="foo3"> <ref refid="foo3"/> </property> <property name="foo4"> <value>FOO4.1</value> <value>FOO4.2</value> <ref refid="foo4.3"/> </property> </bean> Always consistent: always at least one value or ref subelement of a property elt; <value> contains only text data; ref body must be empty. Slightly more verbose, but probably easier to author with an XML editor (even the basic Eclipse XML editor I use most of the time). I don't care whether it's called value or data, or anything else...any ideas? Regards, Rod ------------------------------------------------------- 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 |