Skip to content

Commit

Permalink
Merge pull request #382 from manovotn/cdiIntegrationCorrection
Browse files Browse the repository at this point in the history
Clarify specification text for CDI support
  • Loading branch information
Emily-Jiang authored Jun 17, 2024
2 parents 1fabf30 + 2653eaa commit 8e48b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/src/main/asciidoc/cdi.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
----
Expand Down

0 comments on commit 8e48b96

Please sign in to comment.