From 80232633c4a1b12d0d4d195fd7853a52fbea0727 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Wed, 6 Nov 2024 08:40:42 +0200 Subject: [PATCH] Allow for using RuntimeDelegate SPI in native mode Fixes: #44301 --- .../common/deployment/ResteasyReactiveCommonProcessor.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extensions/resteasy-reactive/rest-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/ResteasyReactiveCommonProcessor.java b/extensions/resteasy-reactive/rest-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/ResteasyReactiveCommonProcessor.java index 9d154c483eb962..c1fa069d6e2cc1 100644 --- a/extensions/resteasy-reactive/rest-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/ResteasyReactiveCommonProcessor.java +++ b/extensions/resteasy-reactive/rest-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/ResteasyReactiveCommonProcessor.java @@ -27,7 +27,6 @@ import org.jboss.jandex.Indexer; import org.jboss.jandex.MethodInfo; import org.jboss.logging.Logger; -import org.jboss.resteasy.reactive.common.jaxrs.RuntimeDelegateImpl; import org.jboss.resteasy.reactive.common.model.InterceptorContainer; import org.jboss.resteasy.reactive.common.model.PreMatchInterceptorContainer; import org.jboss.resteasy.reactive.common.model.ResourceInterceptor; @@ -340,8 +339,7 @@ public void setupEndpoints(BeanArchiveIndexBuildItem beanArchiveIndexBuildItem, @BuildStep void registerRuntimeDelegateImpl(BuildProducer serviceProviders) { - serviceProviders.produce(new ServiceProviderBuildItem(RuntimeDelegate.class.getName(), - RuntimeDelegateImpl.class.getName())); + serviceProviders.produce(ServiceProviderBuildItem.allProvidersFromClassPath(RuntimeDelegate.class.getName())); } /*