On Thu, Mar 4, 2010 at 3:59 PM, Lincoln Baxter, III <firstname.lastname@example.org>
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?
@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.