Annotation Type Context


  • @Target({PARAMETER,METHOD,FIELD})
    @Retention(RUNTIME)
    @Documented
    public @interface Context

    This annotation is used to inject information into a class field, bean property or method parameter.

    Note that future versions of this API will stop supporting injection via Context as part of a tighter integration and alignment with Jakarta CDI.

    Since:
    1.0
    See Also:
    Application, UriInfo, Request, HttpHeaders, SecurityContext, Providers