Stratal API Reference
    Preparing search index...

    Class RequestScopeService

    Request Scope Service

    Manages request-scoped container setup and lifecycle. Creates context-enriched instances of @RequestScoped services.

    Two-Tier Container Architecture:

    Container (manages global container)

    container.createRequestScope(routerContext)

    Request Container (child, per request)

    Context-enriched instances via withContext(routerContext)

    Responsibilities:

    • Setup request-scoped container middleware
    • Create context-enriched instances of @RequestScoped services

    Note:

    • AuthContext registration is handled by AuthModule's AuthContextMiddleware
    • Locale extraction is handled by I18nModule's LocaleExtractionMiddleware
    • Zod i18n context is handled by I18nModule's I18nContextMiddleware
    • Session verification is handled by AuthModule's SessionVerificationMiddleware
    Index

    Constructors

    Methods

    Constructors

    Methods