From b90e5fb1452e4924758141cb66fff579cab5e94c Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Tue, 27 Aug 2024 18:11:17 +0300 Subject: [PATCH] Register InetAddressResolverProvider service providers --- .../quarkus/deployment/InetAddressProcessor.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 core/deployment/src/main/java/io/quarkus/deployment/InetAddressProcessor.java diff --git a/core/deployment/src/main/java/io/quarkus/deployment/InetAddressProcessor.java b/core/deployment/src/main/java/io/quarkus/deployment/InetAddressProcessor.java new file mode 100644 index 0000000000000..2f9ae24552db1 --- /dev/null +++ b/core/deployment/src/main/java/io/quarkus/deployment/InetAddressProcessor.java @@ -0,0 +1,15 @@ +package io.quarkus.deployment; + +import io.quarkus.deployment.annotations.BuildProducer; +import io.quarkus.deployment.annotations.BuildStep; +import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem; + +public class InetAddressProcessor { + + @BuildStep + void registerInetAddressServiceProvider(BuildProducer services) { + // service provider loaded by java.net.InetAddress.loadResolver + services.produce(ServiceProviderBuildItem.allProvidersFromClassPath("java.net.spi.InetAddressResolverProvider")); + } + +}