Top Description Inners Methods
jakarta.enterprise.context

public @Interface RequestScoped

extends Annotation
Known Direct Implementers
jakarta.enterprise.context.RequestScoped.Literal
Annotations
@Target:TYPE, METHOD, FIELD
@Retention:RUNTIME
@Documented
@NormalScope
@Inherited
Static Imports
java.lang.annotation.ElementType.FIELD, .ElementType.METHOD, .ElementType.TYPE, .RetentionPolicy.RUNTIME

Specifies that a bean is request scoped.

While RequestScoped must be associated with the built-in request context required by the specification, third-party extensions are allowed to also associate it with their own context. Behavior described below is only related to the built-in request context.

The request scope is active:

The request context is destroyed:

An event with qualifier @Initialized(RequestScoped.class) is fired when the request context is initialized and an event with qualifier @Destroyed(RequestScoped.class) when the request context is destroyed. The event payload is:

Authors
Gavin King, Pete Muir, Antoine Sabot-Durand

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
RequestScoped.Literal

Supports inline instantiation of the RequestScoped annotation.

Method Summary

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

public final Class RequestScoped.Literal

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

Supports inline instantiation of the RequestScoped annotation.
Author
Martin Kouba
Since
2.0

Field Summary

Modifier and TypeField and Description
public static final RequestScoped.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 RequestScoped.Literal INSTANCE
serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.enterprise.util.AnnotationLiteral.serialVersionUID.

Constructor Detail

Literalback to summary
public Literal()