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>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; private PaymentStrategyType paymentStrategy;<br>
&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; ...<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; @SessionScoped<br>&nbsp;&nbsp;&nbsp; private static class Producer {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private @Current Preferences preferences;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @Produces @Preferred @SessionScoped<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; public PaymentStrategy getPaymentStrategy() {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; switch (preferences.paymentStrategy) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; case CREDIT_CARD: return new CreditCardPaymentStrategy();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; case CHEQUE: return new ChequePaymentStrategy();<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; case PAYPAL: return new PayPalPaymentStrategy();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; default: return null;<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; <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">&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;">What&#39;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 &lt;<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>&gt; wrote:<br>
&gt; These are now published on <a href="http://docs.jboss.org" target="_blank">docs.jboss.org</a><br>
&gt;<br>
&gt; See <a href="http://seamframework.org/WebBeans/WebBeansOverview" target="_blank">http://seamframework.org/WebBeans/WebBeansOverview</a> - I&#39;ve also moved the<br>
&gt; RI stuff out to another page so that you can do what you want with the<br>
&gt; homepage Gavin :-)<br>
&gt;<br>
&gt; On 29 Oct 2008, at 16:07, Gavin King wrote:<br>
&gt;<br>
&gt;&gt; Here&#39;s the article i&#39;ve been writing about web beans for developers.<br>
&gt;&gt; It&#39;s almost finished, but I would appreciate a proofread/suggestions.<br>
&gt;&gt;<br>
&gt;&gt; This has been done in docbook, so I&#39;m thinking it can evolve into the<br>
&gt;&gt; documentation for the RI (with addition of some new RI-specific<br>
&gt;&gt; sections).<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve also attached the latest spec, which has some various fixes.<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Gavin King<br>
&gt;&gt; <a href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a><br>
&gt;&gt; <a href="http://in.relation.to/Bloggers/Gavin" target="_blank">http://in.relation.to/Bloggers/Gavin</a><br>
&gt;&gt; <a href="http://hibernate.org" target="_blank">http://hibernate.org</a><br>
&gt;&gt; <a href="http://seamframework.org" target="_blank">http://seamframework.org</a><br>
&gt;&gt; &lt;Web Beans 20081029.pdf&gt;&lt;Introduction to Web Beans<br>
&gt;&gt; 20081029.pdf&gt;_______________________________________________<br>
&gt;&gt; webbeans-dev mailing list<br>
&gt;&gt; <a href="mailto:webbeans-dev@lists.jboss.org">webbeans-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/webbeans-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/webbeans-dev</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; webbeans-dev mailing list<br>
&gt; <a href="mailto:webbeans-dev@lists.jboss.org">webbeans-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/webbeans-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/webbeans-dev</a><br>
&gt;<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>&quot;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&#39;s gonna comfort me and keep me strong?&quot;<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>