@Target(value=PARAMETER) @Retention(value=RUNTIME) @Documented public @interface TransientReference
Inject
,
its parameters may be annotated with \@TransientReference.
If a parameter is annotated with \@TransientReference
and the injected bean is Dependent
-scoped,
it may be destroyed by the container right after the invocation
of the constructor or method.
Technically spoken, the parameter will not be added to the
CreationalContext
of the bean of the constructor or method, but will be created with a separate
CreationalContext
that will be destroyed after the invocation.Copyright © 2020. All rights reserved.