Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scan UuidGenerator implementations without starting them #2933

Open
mpkorstanje opened this issue Oct 9, 2024 · 0 comments
Open

Scan UuidGenerator implementations without starting them #2933

mpkorstanje opened this issue Oct 9, 2024 · 0 comments

Comments

@mpkorstanje
Copy link
Contributor

The ideal solution would be to have the UuidGenerator return a supplier instance that keeps the state internally.

public interface UuidGenerator {

    Supplier<UUID> supplier();
}

And then have the UuidGeneratorServiceLoader return that supplier only for the selected generator. Fortunately the UuidGenerator is experimental so I don't feel too bad about breaking the contract. But I'd rather avoid doing that on a patch version.

Originally posted by @mpkorstanje in #2931 (comment)

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

No branches or pull requests

1 participant