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

Refactor SPI interfaces - use single common ConfigExtension to ServiceLoad all avaje-config extensions #149

Merged
merged 8 commits into from
May 15, 2024

Conversation

SentryMan
Copy link
Collaborator

@SentryMan SentryMan commented May 13, 2024

This is a breaking change for avaje-config extensions.

Makes one super interface ConfigExtension for all the spi classes. All avaje-config extensions need to register with ServiceLoader using this interface rather than the specific one (like ConfigurationSource).

All these extensions are loaded via ServiceLoader via the ConfigExtension interface rather than making the 6 separate service loader calls for each specific extension interfaces.

Requires avaje/avaje-spi-service#18

@rob-bygrave
Copy link
Contributor

rob-bygrave commented May 14, 2024

moves pre/post initialization from the Config Log into the Config Plugin

I don't think this is what we want. Those methods were specifically on ConfigurationLog for a reason so its unclear why you moved them? If we where to make such a change we should communicate it clearly (and as such our github issue title should reflect all the change included in a PR).

Why did you want to include this change?


Resolved.

@rbygrave rbygrave changed the title Refactor SPI interfaces Refactor SPI interfaces - use single common ConfigExtension to ServiceLoad all avaje-config extensions May 15, 2024
@rbygrave rbygrave added this to the 4.0 milestone May 15, 2024
@rbygrave rbygrave merged commit e7601cb into avaje:master May 15, 2024
4 checks passed
@SentryMan SentryMan deleted the spi-refactor branch May 15, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants