Skip to content

Commit

Permalink
Update docs/src/main/asciidoc/rest-json.adoc
Browse files Browse the repository at this point in the history
Co-authored-by: Georgios Andrianakis <[email protected]>
  • Loading branch information
essobedo and geoand authored Feb 23, 2021
1 parent 9fb0605 commit 2f7f86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/rest-json.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ An explicit CDI scope annotation (`@RequestScoped`, `@ApplicationScoped`, etc.)

== Include/Exclude JAX-RS classes with build time conditions

Quarkus allows to include or exclude root resource, provider and feature classes directly thanks to build time conditions like it is possible with CDI beans.
Quarkus enables the inclusion or exclusion of JAX-RS Resources, Providers and Features directly thanks to build time conditions in the same that it does for CDI beans.
Indeed, the different JAX-RS classes can be annotated with profile conditions (`@io.quarkus.arc.profile.IfBuildProfile` or `@io.quarkus.arc.profile.UnlessBuildProfile`) and/or with property conditions (`io.quarkus.arc.properties.IfBuildProperty` or `io.quarkus.arc.properties.UnlessBuildProperty`) to indicate to Quarkus at build time under which conditions the JAX-RS classes should be included.

In the following example, Quarkus includes the endpoint `sayHello` if and only if the build profile `app1` has been enabled.
Expand Down

0 comments on commit 2f7f86c

Please sign in to comment.