Package jakarta.enterprise.inject
Annotation Interface TransientReference
If a parameter annotated with @TransientReference resolves to a dependent scoped bean, then the bean will be
destroyed after the invocation completes.
public class OrderManager {
@Inject
public OrderManager(@TransientReference Order order) {
...
}
}
- Since:
- 1.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSupports inline instantiation of theTransientReferenceannotation.