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:
| Modifier and Type | Class and Description |
|---|---|
| public static class | RequestScoped.Literal
Supports inline instantiation of the |
RequestScoped annotation.
| Modifier and Type | Field and Description |
|---|---|
| public static final RequestScoped. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| INSTANCE | back to summary |
|---|---|
| public static final RequestScoped. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. | |
| Literal | back to summary |
|---|---|
| public Literal() | |