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

LOGBACK-1729: Add OSGi Service Loader Mediator entries to load logback Configurators #639

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

HannesWell
Copy link
Contributor

@HannesWell HannesWell commented Mar 23, 2023

At the moment logback cannot load Configurator implementations provided by other bundles in an OSGi runtime, because of missing Service Loader Mediator entries. This PR adds them, so the Service Loader Mediator implementation does not have to be configured to workaround the missing metadata.

Additionally add entry to provide the ServletContainerInitializer service implementation in OSGi runtimes via SPI.

In general improve the overall quality of the Service Loader Mediator entries.
See

Fixes https://jira.qos.ch/browse/LOGBACK-1729.

@HannesWell HannesWell force-pushed the osgiConfiguratorLoader branch from 030623e to 7988a8e Compare March 23, 2023 11:51
@HannesWell HannesWell changed the title Add OSGi Service Loader Mediator entries to load logback Configurators LOGBACK-1729:: Add OSGi Service Loader Mediator entries to load logback Configurators Mar 23, 2023
@HannesWell HannesWell changed the title LOGBACK-1729:: Add OSGi Service Loader Mediator entries to load logback Configurators LOGBACK-1729: Add OSGi Service Loader Mediator entries to load logback Configurators Mar 23, 2023
@HannesWell
Copy link
Contributor Author

@ceki would that also be interesting for the logback 1.3 branch? In general the same issue exists there are well.

Add and improve the OSGi Service Loader Mediator entries to load logback
Configurators provided by other bundles.

Additionally add entry to provide the ServletContainerInitializer
service implementation in OSGi runtimes via SPI.

In general improve the overall quality of the Service Loader Mediator
entries.

See
- https://docs.osgi.org/specification/osgi.cmpn/8.0.0/service.loader.html
- https://aries.apache.org/documentation/modules/spi-fly.html#specconf

Fixes https://jira.qos.ch/browse/LOGBACK-1729

Signed-off-by: Hannes Wellmann <[email protected]>
@HannesWell HannesWell force-pushed the osgiConfiguratorLoader branch from 7988a8e to 2d4050e Compare March 23, 2023 15:11
@ceki ceki closed this Mar 23, 2023
@ceki ceki reopened this Mar 23, 2023
@ceki ceki merged commit 5ac98f4 into qos-ch:master Mar 23, 2023
@HannesWell HannesWell deleted the osgiConfiguratorLoader branch March 23, 2023 16:17
@HannesWell
Copy link
Contributor Author

Thank you for the quick review and merge. Should i create a back port to 1.3 for this PR too?

@ceki
Copy link
Member

ceki commented Mar 23, 2023

Yes, please.

@HannesWell
Copy link
Contributor Author

Done in #643.

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