Skip to content

Commit 57aab26

Browse files
committed
Sync documentation of main branch
1 parent c444aaf commit 57aab26

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

_generated-doc/main/infra/quarkus-all-build-items.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9327,7 +9327,8 @@ Add a footer tab to the Dev UI.
93279327
a| https://github.com/quarkusio/quarkus/blob/main/extensions/vertx-http/dev-ui-spi/src/main/java/io/quarkus/devui/spi/JsonRPCProvidersBuildItem.java[`io.quarkus.devui.spi.JsonRPCProvidersBuildItem`, window="_blank"]
93289328
[.description]
93299329
--
9330-
This allows you to register a class that will provide data during runtime for JsonRPC Requests
9330+
This allows you to register a class that will provide data during runtime for JsonRPC Requests.
9331+
Note that this build item should <em>not</em> be produced only in dev mode (e.g. using `@BuildStep(onlyIf = IsDevelopment.class)` ), because it is also used to discover valid usages of execution model affecting annotations (see `io.quarkus.deployment.execannotations.ExecutionModelAnnotationsAllowedBuildItem` ).
93319332
-- a|`java.lang.Class jsonRPCMethodProviderClass`
93329333
93339334
_No Javadoc found_

_versions/main/guides/dev-ui.adoc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -876,14 +876,13 @@ You must register the `JsonPRCService` in your processor in the deployment modul
876876

877877
[source,java]
878878
----
879-
@BuildStep(onlyIf = IsDevelopment.class)// <1>
880-
JsonRPCProvidersBuildItem createJsonRPCServiceForCache() {// <2>
881-
return new JsonRPCProvidersBuildItem(CacheJsonRPCService.class);// <3>
879+
@BuildStep
880+
JsonRPCProvidersBuildItem createJsonRPCServiceForCache() {// <1>
881+
return new JsonRPCProvidersBuildItem(CacheJsonRPCService.class);// <2>
882882
}
883883
----
884-
<1> Always only do this in Dev Mode
885-
<2> Produce or return a `JsonRPCProvidersBuildItem`
886-
<3> Define the class in your runtime module that will contain methods that make data available in the UI
884+
<1> Produce or return a `JsonRPCProvidersBuildItem`
885+
<2> Define the class in your runtime module that will contain methods that make data available in the UI
887886

888887
https://github.com/quarkusio/quarkus/blob/main/extensions/cache/deployment/src/main/java/io/quarkus/cache/deployment/devui/CacheDevUiProcessor.java[Example code]
889888

_versions/main/guides/rest.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,6 +2363,7 @@ If you wish to make sure your exception mapper is called for your exception type
23632363
23642364
[source,java]
23652365
----
2366+
@UnwrapException
23662367
public class MyExceptionWrapper extends RuntimeException {
23672368
public MyExceptionWrapper(Exception cause) {
23682369
super(cause);

0 commit comments

Comments
 (0)