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.
Gurkan
________________________________
From: Gavin King <gavin(a)hibernate.org>
To: Java Community Process JSR #299 Expert List <JSR-299-EG(a)jcp.org>; Jim Knutson
<knutson(a)us.ibm.com>; Michael Keith <michael.keith(a)oracle.com>; Matt Drees
<matt.drees(a)gmail.com>; Scott Ferguson <ferg(a)caucho.com>; WebBeans
<webbeans-dev(a)lists.jboss.org>
Sent: Sunday, December 21, 2008 9:17:57 AM
Subject: [webbeans-dev] Re: XML configuration format
I blogged it here:
http://in.relation.to/Bloggers/XMLConfigurationInWebBeans
On Sun, Dec 21, 2008 at 5:12 PM, Gavin King <gavin(a)hibernate.org> wrote:
I would like to open up a discussion about the XML format defined in
chapter 10.
Mike is concerned that the XML format is different to the style used
in other Java EE specifications, where class/method names are
generally specified as strings in the body of XML elements, and that
the XML format may turn out to be confusing to users.
On the other hand, the format currently defined by the specification
is typesafe, allowing tooling to provide validation and
auto-completion of all class/method names, and is also less verbose.
It's also consistent with the approach used by existing solutions in
the spec (Spring, Seam).
I've recently discovered that it's possible to write a Java 6
Processor that would generate the XML schema for a package containing
web beans as part of the compilation process. (This is an awesome new
feature of javac, that used to be provided by the APT plugin.)
One possible path to take would be to use hyphenated names in the XML
(i.e. <foo-bar> instead of <FooBar>) to make the XML more visually
consistent with other EE descriptors.
I would like to get everyone's thoughts on this issue:
Do you like the existing format?
Do you find it confusing? In what way?
Have you used this approach in Spring or Seam? If so, how did it compare?
How important is typesafety?
--
Gavin King
gavin.king(a)gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org
--
Gavin King
gavin.king(a)gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org
_______________________________________________
webbeans-dev mailing list
webbeans-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/webbeans-dev