<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 &lt;gavin@hibernate.org&gt;<br><b><span style="font-weight: bold;">To:</span></b> Scott Ferguson &lt;ferg@caucho.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> Java Community Process JSR #299 Expert List &lt;JSR-299-EG@jcp.org&gt;; Jim Knutson &lt;knutson@us.ibm.com&gt;; WebBeans &lt;webbeans-dev@lists.jboss.org&gt;; Michael Keith &lt;michael.keith@oracle.com&gt;<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&gt;1) The inline bean vs property needs to be simplified.&nbsp; (9.5 injection<br>SF&gt; point declarations), specifically the existence of a child element should<br>SF &gt;not affect the parsing.&nbsp; Instead, it should follow the method model (9.2.6)<br>SF&gt; where "has a direct child &lt;Initializer&gt;, ..., or binding type."&nbsp; 9.5 should<br>SF&gt; be rewritten as:<br>&gt;<br>SF&nbsp; &nbsp;  a) If the Java type is a parameterized type .... is a type declaration<br>SF&nbsp;  b) Otherwise if ... binding type ... is a type declaration<br>SF&nbsp; &nbsp;  c) Otherwise, the injection point declaration is an inline Web Bean<br>SF declaration, and the declared type ...<br>&gt;<br>SF i.e. removing the old 3rd rule because it was making things more confusing.<br>SF&nbsp; The slight extra verbosity by requiring &lt;Current/&gt; for an injected type is<br>SF outweighed by the simplification, and consistency with
 9.2.6.<br><br>GK&gt; This change would amount to *always* having to specify &lt;Current/&gt; in<br>GK&gt;the common case where an injection point is not an inline Web Bean<br>GK&gt;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&nbsp; for example,&lt;Inline/&gt;<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>