public abstract @interface

New

implements Annotation
javax.enterprise.inject.New

Class Overview

The built-in qualifier type.

The @New qualifier allows the application to obtain a new instance of a bean which is not bound to the declared scope, but has had dependency injection performed.

 @Produces @ConversationScoped 
 @Special Order getSpecialOrder(@New(Order.class) Order order) {
    ...
    return order;
 }
 

When the @New qualifier is specified at an injection point and no javax.enterprise.inject.New#value() value member is explicitly specified, the container defaults the javax.enterprise.inject.New#value() value to the declared type of the injection point. So the following injection point has qualifier @New(Order.class):

 @Produces @ConversationScoped 
 @Special Order getSpecialOrder(@New Order order) { ... }
 

Summary

[Expand]
Inherited Methods
From interface java.lang.annotation.Annotation