Correct me if I'm wrong, but static producer methods wouldn't be able to be @Specialized, right? <br>Maybe that's fine. <br>-Matt<br><br><br><div class="gmail_quote">On Fri, Nov 14, 2008 at 12:50 PM, Gavin King <span dir="ltr"><<a href="mailto:gavin@hibernate.org">gavin@hibernate.org</a>></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 <<a href="mailto:gavin@hibernate.org">gavin@hibernate.org</a>><br>
Date: Fri, Nov 14, 2008 at 12:50 PM<br>
Subject: static producers<br>
To: Java Community Process JSR #299 Expert List <<a href="mailto:JSR-299-EG@jcp.org">JSR-299-EG@jcp.org</a>><br>
<br>
<br>
Question:<br>
<br>
should we allow producer methods and fields to be declared "static"?<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't think of a good reason why *not*...<br>
<br>
Furthermore, should we allow static observer and disposal methods?<br>
Again, I can'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>