<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>This XML configuration is all about the type-safety and is more powerful than classical Java EE configuration files. So, when using types, <fooBar> is more reosanble to use than <foo-bar> from the Java developer perspective.<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br>Gurkan<br><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Gavin King <gavin@hibernate.org><br><b><span style="font-weight: bold;">To:</span></b> Java Community Process JSR #299 Expert List <JSR-299-EG@jcp.org>; Jim Knutson <knutson@us.ibm.com>; Michael Keith <michael.keith@oracle.com>; Matt Drees <matt.drees@gmail.com>; Scott Ferguson
<ferg@caucho.com>; WebBeans <webbeans-dev@lists.jboss.org><br><b><span style="font-weight: bold;">Sent:</span></b> Sunday, December 21, 2008 9:17:57 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [webbeans-dev] Re: XML configuration format<br></font><br>
I blogged it here:<br><br><a href="http://in.relation.to/Bloggers/XMLConfigurationInWebBeans" target="_blank">http://in.relation.to/Bloggers/XMLConfigurationInWebBeans</a><br><br>On Sun, Dec 21, 2008 at 5:12 PM, Gavin King <<a ymailto="mailto:gavin@hibernate.org" href="mailto:gavin@hibernate.org">gavin@hibernate.org</a>> wrote:<br>> I would like to open up a discussion about the XML format defined in chapter 10.<br>><br>> Mike is concerned that the XML format is different to the style used<br>> in other Java EE specifications, where class/method names are<br>> generally specified as strings in the body of XML elements, and that<br>> the XML format may turn out to be confusing to users.<br>><br>> On the other hand, the format currently defined by the specification<br>> is typesafe, allowing tooling to provide validation and<br>> auto-completion of all class/method names, and is also less verbose.<br>> It's also
consistent with the approach used by existing solutions in<br>> the spec (Spring, Seam).<br>><br>> I've recently discovered that it's possible to write a Java 6<br>> Processor that would generate the XML schema for a package containing<br>> web beans as part of the compilation process. (This is an awesome new<br>> feature of javac, that used to be provided by the APT plugin.)<br>><br>> One possible path to take would be to use hyphenated names in the XML<br>> (i.e. <foo-bar> instead of <FooBar>) to make the XML more visually<br>> consistent with other EE descriptors.<br>><br>> I would like to get everyone's thoughts on this issue:<br>><br>> Do you like the existing format?<br>> Do you find it confusing? In what way?<br>> Have you used this approach in Spring or Seam? If so, how did it compare?<br>> How important is typesafety?<br>><br>> --<br>> Gavin King<br>> <a
ymailto="mailto:gavin.king@gmail.com" href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a><br>> <a href="http://in.relation.to/Bloggers/Gavin" target="_blank">http://in.relation.to/Bloggers/Gavin</a><br>> <a href="http://hibernate.org" target="_blank">http://hibernate.org</a><br>> <a href="http://seamframework.org" target="_blank">http://seamframework.org</a><br>><br><br><br><br>-- <br>Gavin King<br><a ymailto="mailto:gavin.king@gmail.com" href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a><br><a href="http://in.relation.to/Bloggers/Gavin" target="_blank">http://in.relation.to/Bloggers/Gavin</a><br><a href="http://hibernate.org" target="_blank">http://hibernate.org</a><br><a href="http://seamframework.org" target="_blank">http://seamframework.org</a><br>_______________________________________________<br>webbeans-dev mailing list<br><a ymailto="mailto:webbeans-dev@lists.jboss.org"
href="mailto:webbeans-dev@lists.jboss.org">webbeans-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/webbeans-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/webbeans-dev</a><br></div></div></div><br>
</body></html>