[weld-dev] Provided scopes in CDI
Lincoln Baxter, III
lincolnbaxter at gmail.com
Thu Mar 4 15:59:49 EST 2010
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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20100304/b856bdc6/attachment.html
More information about the weld-dev
mailing list