Repository navigation
Versioning SPIs #38587
Unanswered
andi-hader
asked this question in
Q&A
Versioning SPIs
#38587
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Goal
I am searching for a way to have multiple instances of the same SPI implementation in a single keycloak instance.
Description
As far as i can see, an instance of a spi implementation is identified by both the id (getId()-function) and the classpath. Where the classpath needs to be present in the corresponding META-INF file. I got the scenario, where my demo as well as my staging application are pointing to the same keycloak instance. As demo and staging are not always in sync, i am looking for a way to have multiple versions of a spi implementation deployed to that keycloak instance. Like my-spi-1.0.jar and my-spi-1.1.jar, where the version might then be a parameter of the classpath?? I mean, i see a way that the version is reflected in the id-method. Via getClass().getPackage().getImplementationVersion() and ./gradlew clean asselmble -Pversion=1.0. But i don't see a feasable way for the classpath.
Do you have recommendation in order to make that happen?
Related Issues
Nothing found.
All reactions