[weld-dev] Provided scopes in CDI

Gavin King gavin.king at gmail.com
Thu Mar 4 16:27:03 EST 2010


@Dependent

Sent from my iPhone

On Mar 4, 2010, at 3:59 PM, "Lincoln Baxter, III" <lincolnbaxter at gmail.com 
 > wrote:

> Does CDI come out of the box with an equivalent of Spring's  
> "Prototype" scope, which means that wherever injection is requested,  
> a new instance of the class is provided?
>
> Is that what
> @Inject @New MyType instance;
> would be used for?
>
> Could this be simplified by removing the need for @Inject, and  
> requiring only @New?
>
> Thanks,
>
> -- 
> Lincoln Baxter, III
> http://ocpsoft.com
> http://scrumshark.com
> "Keep it Simple"
> _______________________________________________
> weld-dev mailing list
> weld-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/weld-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20100304/9d959541/attachment.html 


More information about the weld-dev mailing list