From 0dc6b92c8eedc056cdb05dd871b3808019b65355 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 21 Aug 2023 10:50:47 +0300 Subject: [PATCH 1/2] Fix typo in writing-extensions.adoc --- docs/src/main/asciidoc/writing-extensions.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/writing-extensions.adoc b/docs/src/main/asciidoc/writing-extensions.adoc index f185a27b431d3..2ac59a6f6a47e 100644 --- a/docs/src/main/asciidoc/writing-extensions.adoc +++ b/docs/src/main/asciidoc/writing-extensions.adoc @@ -1388,7 +1388,7 @@ And at the end of the guide, the extensive configuration documentation: [WARNING] ==== -All documentation should be generated and validated before being commited. +All documentation should be generated and validated before being committed. ==== === Conditional Step Inclusion From ee645f8059fdcc732ad24e7476a6e8bfa4f1d306 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 21 Aug 2023 10:54:40 +0300 Subject: [PATCH 2/2] Add note about QuarkusClassLoader.isClassPresentAtRuntime --- docs/src/main/asciidoc/writing-extensions.adoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/src/main/asciidoc/writing-extensions.adoc b/docs/src/main/asciidoc/writing-extensions.adoc index 2ac59a6f6a47e..ba5bb9eacc7f1 100644 --- a/docs/src/main/asciidoc/writing-extensions.adoc +++ b/docs/src/main/asciidoc/writing-extensions.adoc @@ -1550,6 +1550,11 @@ However, this method should not be needed in most use cases because directly loa Therefore, this method is deprecated. Nonetheless, there are some use cases where this method comes in handy, such as referring to classes that were generated in previous build steps using `GeneratedClassBuildItem`. +==== Runtime Classpath check + +Extensions often need a way to determine whether a given class is part of the application's runtime classpath. +The proper way for an extension to perform this check is to use `io.quarkus.bootstrap.classloading.QuarkusClassLoader.isClassPresentAtRuntime`. + ==== Printing step execution time At times, it can be useful to know how the exact time each startup task (which is the result of each bytecode recording) takes when the application is run.