Hi all.&nbsp; I&#39;ve been a lurker on the list for a while and have been reading and studying the spec like a mad man.&nbsp; If I go off the rails here feel free to let me know. :)<br><br>The only thing I can think of as a possible issue with this is Web Bean specialization?&nbsp; Static methods cannot be overridden and only hidden by sub-classes and the declared type (any actual instance is ignored) is used to resolve which static method is called.&nbsp; If you had a static Foo#producerMethod and a specialization of a static MockFoo#producerMethod Web Beans would have to know to call MockFoo.producerMethod and couldn&#39;t rely on Foo.producerMethod to resolve polymorphically to the specialized producer method.<br>
<br>I don&#39;t think it would be a problem that couldn&#39;t be overcome but it would seem to complicate the specialization rules quite a bit.<br><br><div class="gmail_quote">On Fri, Nov 14, 2008 at 11:50 AM, Gavin King <span dir="ltr">&lt;<a href="mailto:gavin@hibernate.org">gavin@hibernate.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">---------- Forwarded message ----------<br>
From: Gavin King &lt;<a href="mailto:gavin@hibernate.org">gavin@hibernate.org</a>&gt;<br>
Date: Fri, Nov 14, 2008 at 12:50 PM<br>
Subject: static producers<br>
To: Java Community Process JSR #299 Expert List &lt;<a href="mailto:JSR-299-EG@jcp.org">JSR-299-EG@jcp.org</a>&gt;<br>
<br>
<br>
Question:<br>
<br>
should we allow producer methods and fields to be declared &quot;static&quot;?<br>
<br>
This would mean that the Web Bean manager does not need to instantiate<br>
an instance of the Web Bean that declares the producer method/field<br>
when invoking the method/field.<br>
<br>
I can&#39;t think of a good reason why *not*...<br>
<br>
Furthermore, should we allow static observer and disposal methods?<br>
Again, I can&#39;t quite think of a reason why *not*...<br>
<br>
--<br>
Gavin King<br>
<a 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>
Gavin King<br>
<font color="#888888"><a 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 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>
</font></blockquote></div><br>