From b82062836954e33631b962d08cefccf4116a7f95 Mon Sep 17 00:00:00 2001 From: Zheng Feng Date: Thu, 14 Nov 2024 16:45:51 +0800 Subject: [PATCH] =?UTF-8?q?Remove=20the=20SerializerProducer=20because=20r?= =?UTF-8?q?esteasy=20init=20the=20providers=20at=20=E2=80=A6=20(#29)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …static_init time --- .../quarkiverse/fury/deployment/FuryProcessor.java | 7 +------ .../fury/ClassicFurySerializerProducer.java | 14 -------------- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 runtime/src/main/java/io/quarkiverse/fury/ClassicFurySerializerProducer.java diff --git a/deployment/src/main/java/io/quarkiverse/fury/deployment/FuryProcessor.java b/deployment/src/main/java/io/quarkiverse/fury/deployment/FuryProcessor.java index defe17e..8ddb6e5 100644 --- a/deployment/src/main/java/io/quarkiverse/fury/deployment/FuryProcessor.java +++ b/deployment/src/main/java/io/quarkiverse/fury/deployment/FuryProcessor.java @@ -7,7 +7,6 @@ import org.jboss.jandex.DotName; import io.quarkiverse.fury.ClassicFurySerializer; -import io.quarkiverse.fury.ClassicFurySerializerProducer; import io.quarkiverse.fury.FuryBuildTimeConfig; import io.quarkiverse.fury.FuryProducer; import io.quarkiverse.fury.FuryRecorder; @@ -79,12 +78,8 @@ public FuryBuildItem setup( @BuildStep public void registerResteasyClassicIntegration(Capabilities capabilities, - BuildProducer resteasyJaxrsProviderBuildItemBuildProducer, - BuildProducer additionalBeans) { + BuildProducer resteasyJaxrsProviderBuildItemBuildProducer) { if (capabilities.isPresent(Capability.RESTEASY)) { - additionalBeans.produce(AdditionalBeanBuildItem.builder().setUnremovable() - .addBeanClasses(ClassicFurySerializerProducer.class) - .build()); resteasyJaxrsProviderBuildItemBuildProducer .produce(new ResteasyJaxrsProviderBuildItem(ClassicFurySerializer.class.getName())); } diff --git a/runtime/src/main/java/io/quarkiverse/fury/ClassicFurySerializerProducer.java b/runtime/src/main/java/io/quarkiverse/fury/ClassicFurySerializerProducer.java deleted file mode 100644 index f150f03..0000000 --- a/runtime/src/main/java/io/quarkiverse/fury/ClassicFurySerializerProducer.java +++ /dev/null @@ -1,14 +0,0 @@ -package io.quarkiverse.fury; - -import jakarta.enterprise.context.ApplicationScoped; -import jakarta.enterprise.context.Dependent; -import jakarta.enterprise.inject.Produces; - -@Dependent -public class ClassicFurySerializerProducer { - @Produces - @ApplicationScoped - public ClassicFurySerializer create() { - return new ClassicFurySerializer(); - } -}