-
-
Notifications
You must be signed in to change notification settings - Fork 546
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
working on setting up a plugin store utilizing pf4j for a SaaS platform #557
Comments
I don't have an answer to your problem but I'm curios to see if anyone faced a similar request and if they solved the problem. |
Indeed, in my current design, I've integrated multi-tenancy and established a table that tracks each tenant's installed plugins along with their respective statuses, whether they're marked as "STARTED" or "STOPPED." However, the challenge arises when dealing with plugins that possess multiple versions yet belong to the same package. Your insights on this matter would be greatly appreciated. |
To make a summary, if I understood correctly you have an application (SaaS platform) with a bunch of plugins, there is the possibility that one or more plugins come in several versions. |
Yes. But I am now using pf4j-spring to manage these plugins. So if Saas platform has different versions of plugins. Suppose different versions of plugins have the same package name and class name, in that case it will report an error. Because the same bean cannot exist in the same spring container. |
Maybe the best place for a such question is pf4j-spring, because the problem is related to the integration of pf4j in a spring application.
An idea is to create a different spring |
Thank you for your reply. Maybe it is a good idea to create a different spring ApplicationContext (in SpringPlugin) for each plugin version. I will close this issure and search more ideas form pf4j-spring. |
I hope this message finds you well. I'm currently working on setting up a plugin store utilizing pf4j for a SaaS platform. However, I've encountered a challenge that I'd appreciate your insight on.
Specifically, I'm exploring how to effectively manage a plugin that may have multiple versions in use. For instance, imagine Customer A using plugin P version 1.0 while Customer B utilizes version 2.0 of the same plugin.
One concern I have relates to handling these different versions within the same package. I'm aiming to ensure compatibility while preventing any repetition of beans in the Spring container. Any guidance or suggestions you might have regarding this matter would be incredibly valuable.
Looking forward to your expertise on this issue.
The text was updated successfully, but these errors were encountered: