<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><b><span style="font-weight: bold;">From:</span></b> Gavin King <gavin@hibernate.org><br><b><span style="font-weight: bold;">To:</span></b> Scott Ferguson <ferg@caucho.com><br><b><span style="font-weight: bold;">Cc:</span></b> Java Community Process JSR #299 Expert List <JSR-299-EG@jcp.org>; Jim Knutson <knutson@us.ibm.com>; WebBeans <webbeans-dev@lists.jboss.org>; Michael Keith <michael.keith@oracle.com><br><b><span style="font-weight: bold;">Sent:</span></b> Sunday, December 21, 2008 9:59:07 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [webbeans-dev] Re: XML configuration
format<br></font><br>SF>1) The inline bean vs property needs to be simplified. (9.5 injection<br>SF> point declarations), specifically the existence of a child element should<br>SF >not affect the parsing. Instead, it should follow the method model (9.2.6)<br>SF> where "has a direct child <Initializer>, ..., or binding type." 9.5 should<br>SF> be rewritten as:<br>><br>SF a) If the Java type is a parameterized type .... is a type declaration<br>SF b) Otherwise if ... binding type ... is a type declaration<br>SF c) Otherwise, the injection point declaration is an inline Web Bean<br>SF declaration, and the declared type ...<br>><br>SF i.e. removing the old 3rd rule because it was making things more confusing.<br>SF The slight extra verbosity by requiring <Current/> for an injected type is<br>SF outweighed by the simplification, and consistency with
9.2.6.<br><br>GK> This change would amount to *always* having to specify <Current/> in<br>GK>the common case where an injection point is not an inline Web Bean<br>GK>definition. I'm really not keen on that.<br><br>As an implementor of the XML configuration, I think it is good idea to add for example,<Inline/><br>element for specifying inline webbeans decleration. It also provides better view in the <br>developer perspective,(easily finds inline webbeans declerations in the XML.)<br></div></div></div><br>
</body></html>