From 3a9ab13c3442444c861c83d1bbb75305b14e2a9b Mon Sep 17 00:00:00 2001 From: Andrej Petras Date: Thu, 6 Jun 2024 17:28:11 +0200 Subject: [PATCH] feat: register rest-client interceptor for reflection (#173) --- docs/modules/tkit-quarkus/pages/includes/attributes.adoc | 2 +- .../java/org/tkit/quarkus/log/rs/RestClientLogInterceptor.java | 3 +++ .../org/tkit/quarkus/log/rs/RestClientPayloadInterceptor.java | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/modules/tkit-quarkus/pages/includes/attributes.adoc b/docs/modules/tkit-quarkus/pages/includes/attributes.adoc index b20c84cf..32ff608d 100644 --- a/docs/modules/tkit-quarkus/pages/includes/attributes.adoc +++ b/docs/modules/tkit-quarkus/pages/includes/attributes.adoc @@ -1,4 +1,4 @@ -:project-version: 2.22.0 +:project-version: 2.23.0 :quarkus-version: 3.9.3 :examples-dir: ./../examples/ \ No newline at end of file diff --git a/extensions/log/rs/runtime/src/main/java/org/tkit/quarkus/log/rs/RestClientLogInterceptor.java b/extensions/log/rs/runtime/src/main/java/org/tkit/quarkus/log/rs/RestClientLogInterceptor.java index 0d55a2f7..aa1a7d0f 100644 --- a/extensions/log/rs/runtime/src/main/java/org/tkit/quarkus/log/rs/RestClientLogInterceptor.java +++ b/extensions/log/rs/runtime/src/main/java/org/tkit/quarkus/log/rs/RestClientLogInterceptor.java @@ -12,11 +12,14 @@ import org.slf4j.LoggerFactory; import org.tkit.quarkus.context.ApplicationContext; +import io.quarkus.runtime.annotations.RegisterForReflection; + /** * The rest client log interceptor * */ @Provider +@RegisterForReflection public class RestClientLogInterceptor implements ClientRequestFilter, ClientResponseFilter { /** diff --git a/extensions/log/rs/runtime/src/main/java/org/tkit/quarkus/log/rs/RestClientPayloadInterceptor.java b/extensions/log/rs/runtime/src/main/java/org/tkit/quarkus/log/rs/RestClientPayloadInterceptor.java index 0b5d4c88..5ab90409 100644 --- a/extensions/log/rs/runtime/src/main/java/org/tkit/quarkus/log/rs/RestClientPayloadInterceptor.java +++ b/extensions/log/rs/runtime/src/main/java/org/tkit/quarkus/log/rs/RestClientPayloadInterceptor.java @@ -8,7 +8,10 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import io.quarkus.runtime.annotations.RegisterForReflection; + @Provider +@RegisterForReflection public class RestClientPayloadInterceptor implements ClientRequestFilter { /**