The @New in producer methods scopes the produced Web Bean to the scope of the class that the producer method is or to the scope defined in the producer method?<br><br>If it is the latter (and that is what the article say [4.3]), is this a valid way to scope the producer methods parameters:<br>
<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">@ConversationScoped<br>public class Preferences {<br> <br> private PaymentStrategyType paymentStrategy;<br>
<br> ...<br> <br> @SessionScoped<br> private static class Producer {<br> private @Current Preferences preferences;<br> @Produces @Preferred @SessionScoped<br> public PaymentStrategy getPaymentStrategy() {<br>
switch (preferences.paymentStrategy) {<br> case CREDIT_CARD: return new CreditCardPaymentStrategy();<br> case CHEQUE: return new ChequePaymentStrategy();<br> case PAYPAL: return new PayPalPaymentStrategy();<br>
default: return null;<br> } <br> }<br> }<br> <br>}<br></blockquote><br><br><br>[]s<br><br><div class="gmail_quote">On Fri, Oct 31, 2008 at 5:21 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;">What's the process for updating this stuff?<br>
<br>
I have a new (better) draft of the intro article...<br>
<div><div></div><div class="Wj3C7c"><br>
On Fri, Oct 31, 2008 at 10:59 AM, Pete Muir <<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>> wrote:<br>
> These are now published on <a href="http://docs.jboss.org" target="_blank">docs.jboss.org</a><br>
><br>
> See <a href="http://seamframework.org/WebBeans/WebBeansOverview" target="_blank">http://seamframework.org/WebBeans/WebBeansOverview</a> - I've also moved the<br>
> RI stuff out to another page so that you can do what you want with the<br>
> homepage Gavin :-)<br>
><br>
> On 29 Oct 2008, at 16:07, Gavin King wrote:<br>
><br>
>> Here's the article i've been writing about web beans for developers.<br>
>> It's almost finished, but I would appreciate a proofread/suggestions.<br>
>><br>
>> This has been done in docbook, so I'm thinking it can evolve into the<br>
>> documentation for the RI (with addition of some new RI-specific<br>
>> sections).<br>
>><br>
>> I've also attached the latest spec, which has some various fixes.<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>
>> <Web Beans 20081029.pdf><Introduction to Web Beans<br>
>> 20081029.pdf>_______________________________________________<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>
><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>
><br>
<br>
<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>
</div></div><div><div></div><div class="Wj3C7c">_______________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>"Nobody knows who i really am<br> I never felt this empty before<br> And if I never need someone to come along<br> Who's gonna comfort me and keep me strong?"<br>
--<br>Marcell Manfrin Barbacena<br><a href="mailto:barbacena@gmail.com">barbacena@gmail.com</a><br><a href="mailto:mbarbacena@tse.gov.br">mbarbacena@tse.gov.br</a><br>Skype: callto://marcell84bruk<br>+55 (83) 8808-8555 (Oi)<br>
+55 (61) 8152-7533 (Tim)<br>