Skip to content

Commit

Permalink
Remove the SerializerProducer because resteasy init the providers at … (
Browse files Browse the repository at this point in the history
#29)

…static_init time
  • Loading branch information
zhfeng authored Nov 14, 2024
1 parent abac5c4 commit b820628
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -79,12 +78,8 @@ public FuryBuildItem setup(

@BuildStep
public void registerResteasyClassicIntegration(Capabilities capabilities,
BuildProducer<ResteasyJaxrsProviderBuildItem> resteasyJaxrsProviderBuildItemBuildProducer,
BuildProducer<AdditionalBeanBuildItem> additionalBeans) {
BuildProducer<ResteasyJaxrsProviderBuildItem> resteasyJaxrsProviderBuildItemBuildProducer) {
if (capabilities.isPresent(Capability.RESTEASY)) {
additionalBeans.produce(AdditionalBeanBuildItem.builder().setUnremovable()
.addBeanClasses(ClassicFurySerializerProducer.class)
.build());
resteasyJaxrsProviderBuildItemBuildProducer
.produce(new ResteasyJaxrsProviderBuildItem(ClassicFurySerializer.class.getName()));
}
Expand Down

This file was deleted.

0 comments on commit b820628

Please sign in to comment.