Annotation Type RequestScoped


  • @Documented
    @Retention(RUNTIME)
    @Scope
    public @interface RequestScoped

    Identifies a type that must be instantiated only one time per scope.

    Typically an application will have at least two scopes: one application level scope and one per request scope. The application level scope endures for the lifetime of the application, the request scope only endures for the lifetime of processing a single request. Each time a new request is processed a new request scope is created.

    Types annotated with RequestScoped will be instantiated once and once only per request. Each request will be processed in a single thread, so RequestScoped types do not need to be thread safe.

    Author:
    cdivilly
    See Also:
    Provides