<div class="gmail_quote">I don't see a problem with that at all. Just not supporting static method specialization it seems to be the best choice to me. <br><div><div></div><div class="Wj3C7c"><br><div class="gmail_quote">
On Sat, Nov 15, 2008 at 1:36 AM, Gavin King <span dir="ltr"><<a href="mailto:gavin@hibernate.org" target="_blank">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;">Hi Chris.<br>
<br>
What I'm thinking is simply to not define/support specialization for<br>
static producers.<br>
<br>
I think that's fine....<br>
<br>
Do you see a problem with that?<br>
<div><div></div><div><br>
On Fri, Nov 14, 2008 at 1:52 PM, Chris Dempsey <<a href="mailto:cdallas@gmail.com" target="_blank">cdallas@gmail.com</a>> wrote:<br>
> Hi all. I've been a lurker on the list for a while and have been reading<br>
> and studying the spec like a mad man. If I go off the rails here feel free<br>
> to let me know. :)<br>
><br>
> The only thing I can think of as a possible issue with this is Web Bean<br>
> specialization? Static methods cannot be overridden and only hidden by<br>
> sub-classes and the declared type (any actual instance is ignored) is used<br>
> to resolve which static method is called. If you had a static<br>
> Foo#producerMethod and a specialization of a static MockFoo#producerMethod<br>
> Web Beans would have to know to call MockFoo.producerMethod and couldn't<br>
> rely on Foo.producerMethod to resolve polymorphically to the specialized<br>
> producer method.<br>
><br>
> I don't think it would be a problem that couldn't be overcome but it would<br>
> seem to complicate the specialization rules quite a bit.<br>
><br>
> On Fri, Nov 14, 2008 at 11:50 AM, Gavin King <<a href="mailto:gavin@hibernate.org" target="_blank">gavin@hibernate.org</a>> wrote:<br>
>><br>
>> ---------- Forwarded message ----------<br>
>> From: Gavin King <<a href="mailto:gavin@hibernate.org" target="_blank">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" target="_blank">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" target="_blank">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>
>> <a href="mailto:gavin.king@gmail.com" target="_blank">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" target="_blank">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>
><br>
><br>
> _______________________________________________<br>
> webbeans-dev mailing list<br>
> <a href="mailto:webbeans-dev@lists.jboss.org" target="_blank">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>
><br>
><br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div>Gavin King<br>
<a href="mailto:gavin.king@gmail.com" target="_blank">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>
</div></div></blockquote></div><br>
</div></div></div><br>