Class VertxAdapterFactory

java.lang.Object
io.apicurio.registry.client.common.VertxAdapterFactory

public final class VertxAdapterFactory extends Object
Factory class for creating Vert.x-based RequestAdapter instances.

This class is isolated from the main RegistryClientRequestAdapterFactory to ensure that Vert.x classes are only loaded when the Vert.x adapter is explicitly selected. This prevents NoClassDefFoundError when using the JDK adapter without Vert.x on the classpath.

  • Method Details

    • createAdapter

      public static com.microsoft.kiota.RequestAdapter createAdapter(RegistryClientOptions options)
      Creates a Vert.x-based RequestAdapter configured with authentication, SSL/TLS, and other settings from the provided options.
      Parameters:
      options - the configuration options
      Returns:
      a fully configured Vert.x RequestAdapter
      Throws:
      IllegalArgumentException - if options are invalid or authentication type is unsupported