From 2653eaa75018e1fab9cae9beb464fa0e83de3eda Mon Sep 17 00:00:00 2001 From: Matej Novotny Date: Sat, 15 Jun 2024 10:21:30 +0200 Subject: [PATCH] Clarify specification text for CDI support --- spec/src/main/asciidoc/cdi.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/src/main/asciidoc/cdi.asciidoc b/spec/src/main/asciidoc/cdi.asciidoc index 46d10a2c..1fe7a867 100644 --- a/spec/src/main/asciidoc/cdi.asciidoc +++ b/spec/src/main/asciidoc/cdi.asciidoc @@ -17,7 +17,7 @@ [[restcdi]] == MicroProfile Rest Client CDI Support -Rest Client interfaces may be injected as CDI beans. The runtime must create a CDI bean for each interface annotated with `RegisterRestClient`. The bean created will include a qualifier `@RestClient` to differentiate the use as an API call against any other beans registered of the same type. Based on the rules of how CDI resolves bean, you are only required to use the qualifier if you have multiple beans of the same type. Any injection point or programmatic look up that uses the qualifier `RestClient` is expected to be resolved by the MicroProfile Rest Client runtime. Below is an example of said interface, with its matching injection point: +Rest Client interfaces may be injected as CDI beans. The runtime must create a CDI bean for each interface annotated with `RegisterRestClient`. The resulting bean always contains the `@RestClient` CDI qualifier to differentiate them from any other CDI bean with the same type. Any injection point or programmatic look up that uses the qualifier `RestClient` is expected to be resolved by the MicroProfile Rest Client runtime. Below is an example of said interface, with its matching injection point: [source, java] ----