Skip to content

Service loading control#6061

Merged
vietj merged 3 commits into5.0from
service-loading-controrl-5.0
Apr 10, 2026
Merged

Service loading control#6061
vietj merged 3 commits into5.0from
service-loading-controrl-5.0

Conversation

@vietj
Copy link
Copy Markdown
Member

@vietj vietj commented Apr 10, 2026

  • Avoid declaring VertxBootstrapImpl in VertxBootstrap contract
  • Let the VertxBootstrap be configured with a list of service providers to use as an alternative to Service Loader.
  • Move the discovery of VerticleFactory implementations to the VertxBuilder bootstrap.

vietj added 3 commits April 10, 2026 09:19
… to use as an alternative to Service Loader.

Motivation:

VertxBootstrap discovers the vertx service provider list using Java's service loader, coupling the configuration of a Vertx instance to the service loader.

Advanced users of Vertx should be able to provide their own list of service providers, instead of relying on this behavior.
…lder bootstrap.

Motivation:

The VerticleManager discovers the list of VerticleFactory in its constructor, forcing the discovery to use Java's ServiceLoader.

This should be overridable, to let advanced Vert.x users provide their list of VerticleFactory implementation when boostrapping a Vertx instance.

Changes:

Move the discovery of VerticleFactory to VertxBuilder.

Add a list known of VerticleFactory on the VertxBuilder that is used instead of performing discovery when provided.
@vietj vietj added this to the 5.1.0 milestone Apr 10, 2026
@vietj vietj self-assigned this Apr 10, 2026
@vietj vietj merged commit 4a756df into 5.0 Apr 10, 2026
7 checks passed
@vietj vietj deleted the service-loading-controrl-5.0 branch April 10, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant