<div class="gmail_quote">On Thu, Mar 4, 2010 at 3:59 PM, Lincoln Baxter, III <span dir="ltr">&lt;<a href="mailto:lincolnbaxter@gmail.com">lincolnbaxter@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Does CDI come out of the box with an equivalent of Spring&#39;s &quot;Prototype&quot; scope, which means that wherever injection is requested, a new instance of the class is provided?<br><br>Is that what <br><pre><span><a>@</a></span><span><a>Inject</a></span><span><a> @</a></span><span><a>New MyType instance;</a></span></pre>

would be used for?<br><br>Could this be simplified by removing the need for @Inject, and requiring only @New?<br></blockquote><div><br></div><div>@New is for getting a @Dependent scoped bean of a bean which has a normal scope. So for instance, the bean has @RequestScoped annotation, but you want to get a @Dependent scoped instance of it.</div>
<div><br></div><div>-Dan</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">-- </blockquote></div>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>
Registered Linux User #231597<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br><a href="http://www.google.com/profiles/dan.j.allen">http://www.google.com/profiles/dan.j.allen</a><br>