Top Description Inners Methods
jakarta.enterprise.inject

public @Interface TransientReference

extends Annotation
Known Direct Implementers
jakarta.enterprise.inject.TransientReference.Literal
Annotations
@Target:PARAMETER
@Retention:RUNTIME
@Documented
Static Imports
java.lang.annotation.ElementType.PARAMETER, .RetentionPolicy.RUNTIME

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) {
       ...

    }
}
Author
Pete Muir
Since
1.1

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
TransientReference.Literal

Supports inline instantiation of the TransientReference annotation.

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString
jakarta.enterprise.inject back to summary

public final Class TransientReference.Literal

extends AnnotationLiteral<TransientReference>
implements TransientReference
Class Inheritance
All Implemented Interfaces
jakarta.enterprise.inject.TransientReference, java.lang.annotation.Annotation

Supports inline instantiation of the TransientReference annotation.
Author
Martin Kouba
Since
2.0
See Also
Instance, Event

Field Summary

Modifier and TypeField and Description
public static final TransientReference.Literal
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from jakarta.enterprise.util.AnnotationLiteral:
annotationTypeequalshashCodetoString

Field Detail

INSTANCEback to summary
public static final TransientReference.Literal INSTANCE
serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.enterprise.util.AnnotationLiteral.serialVersionUID.

Constructor Detail

Literalback to summary
public Literal()