Class SmallRyeStorkProcessor

java.lang.Object
io.quarkus.stork.deployment.SmallRyeStorkProcessor

public class SmallRyeStorkProcessor extends Object
  • Constructor Details

    • SmallRyeStorkProcessor

      public SmallRyeStorkProcessor()
  • Method Details

    • registerServiceProviders

      void registerServiceProviders(io.quarkus.deployment.annotations.BuildProducer<io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem> services)
    • unremoveableBeans

      io.quarkus.arc.deployment.UnremovableBeanBuildItem unremoveableBeans()
    • checkThatTheKubernetesExtensionIsUsedWhenKubernetesServiceDiscoveryInOnTheClasspath

      void checkThatTheKubernetesExtensionIsUsedWhenKubernetesServiceDiscoveryInOnTheClasspath(io.quarkus.deployment.Capabilities capabilities)
      This build step is the fix for #24444. Because Stork itself cannot depend on Quarkus, and we do not want to have extensions for all the service discovery and load-balancer providers, we work around the issue by detecting when the kubernetes service discovery is used and if the kubernetes extension is used.
    • initializeStork

      void initializeStork(io.quarkus.stork.SmallRyeStorkRecorder storkRecorder, io.quarkus.deployment.builditem.ShutdownContextBuildItem shutdown, io.quarkus.vertx.deployment.VertxBuildItem vertx)
    • configuresAutomaticRegistration

      void configuresAutomaticRegistration(io.quarkus.deployment.annotations.BuildProducer<StorkRegistrationConfigReadyBuildItem> registration, io.quarkus.stork.StorkRegistrarConfigRecorder registrarConfigRecorder, io.quarkus.deployment.Capabilities capabilities)
      Build step to configure automatic service registration when using SmallRye Stork in a Quarkus application.

      If a supported Stork service registrar is present (e.g., Consul or Eureka), this method detects the registrar type and initializes its configuration, optionally including health check information if Smallrye Health Check extension is present.

      This step ensures a minimal and automatic setup experience for developers, reducing manual configuration.

    • registerServiceInstance

      void registerServiceInstance(StorkInitializedBuildItem storkInitializedBuildItem, io.quarkus.deployment.builditem.ShutdownContextBuildItem shutdown, io.quarkus.stork.SmallRyeStorkRegistrationRecorder registrationRecorder)