Skip to content

Commit 5d4671e

Browse files
committed
Sync documentation of main branch
1 parent b22441e commit 5d4671e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

_versions/main/guides/resteasy.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,12 @@ If set to `false`, then a *new instance* of the resource class is created per ea
803803

804804
An explicit CDI scope annotation (`@RequestScoped`, `@ApplicationScoped`, etc.) always overrides the default behavior and specifies the lifecycle of resource instances.
805805

806+
[WARNING]
807+
====
808+
`@Context` elements are not injected via CDI and, as such, may not be injected via constructor injection.
809+
Inject `@Context` elements in fields of your resources instead.
810+
====
811+
806812
== Include/Exclude Jakarta REST classes with build time conditions
807813

808814
Quarkus enables the inclusion or exclusion of Jakarta REST Resources, Providers and Features directly thanks to build time conditions in the same that it does for CDI beans.

0 commit comments

Comments
 (0)