Package dev.resteasy.vertx.spi


package dev.resteasy.vertx.spi
Public API and SPI shared by the RESTEasy Vert.x integration modules.

This package contains the service provider interfaces users implement to customize how the RESTEasy Vert.x client and server obtain their Vertx instance.

SPI Interfaces

  • VertxFactory - Creates or supplies the Vertx instance used by the integration, for example to reuse an application-managed instance

Service Registration

A VertxFactory implementation is discovered via Java's ServiceLoader by adding a META-INF/services/dev.resteasy.vertx.spi.VertxFactory file containing the fully-qualified implementation class name. If none is found, the integration falls back to Vertx.vertx().

Example: Reusing an Existing Vertx Instance

public class MyVertxFactory implements VertxFactory {
    @Override
    public Vertx create() {
        return MyApplication.getSharedVertx();
    }
}
Since:
2.0