I've had cases in the past where I wanted to override which services are loaded by ServiceLoader, or disable them entirely, and
https://docs.oracle.com/javase/9/docs/api/java/util/ServiceLoader.html doesn't provide any way to override the detection.
Do you think there'd be any value in Quarkus standardising on a configuration to be able to override them?
Something like:
# disable all such services
quarkus.services.org.eclipse.microprofile.context.spi.ThreadContextProvider=
# limit services
quarkus.services.org.eclipse.microprofile.context.spi.ThreadContextProvider=io.smallrye.context.jta.context.propagation.JtaContextProvider
WDYT?
--
Stéphane Épardaud