Skip to content

Conversation

laeubi
Copy link
Contributor

@laeubi laeubi commented Aug 7, 2025

Currently the UuidGenerator is looked up by SPI when creating the event bus. This requires the UuidGenerator to be part of the classloader what might not always be the case.

This now adds an option to set an actual instance for the UuidGenerator and uses that in case it is specified.

Currently the UuidGenerator is looked up by SPI when creating the event
bus. This requires the UuidGenerator to be part of the classloader what
might not always be the case.

This now adds an option to set an actual instance for the UuidGenerator
and uses that in case it is specified.
@mpkorstanje
Copy link
Contributor

mpkorstanje commented Aug 12, 2025

@laeubi do you still need this?

I'm looking at cucumber/cucumber-eclipse@12e829e and I see that you're using the ObjectFactoryServiceLoader which uses SPI. Why does that work and why doesn't the UuidGeneratorServiceLoader?

@mpkorstanje mpkorstanje changed the title Add a new option to supply a custom UuidGenerator when building runtime Add custom UuidGenerator to Runtime.Builder Aug 28, 2025
@mpkorstanje mpkorstanje merged commit d2e568c into cucumber:main Aug 28, 2025
6 checks passed
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.

2 participants