Java SPI - ServiceLoader - adding multiple JAR's to APP classpath -
I have a problem in implementing this argument in my project using Im ServiceLoader and I do not know or This is also possible, but I want to add JARs to some known directory for dynamic app so that the app can load them when it starts. What I have achieved is that I know how to make a jar (with meta-INF / services) so that I will add more and more providers and classes (implementation) to this jar. Jar is included in class like ordinary library, so the app knows about it. What I want to achieve: I do not want to file a jar, but I want to extend the application by adding more jar like plugins, along with the providers (services), but I do not know how.
Thanks for the help!
You just need (a) URLClassLoader which is created with all the URLs of those directories Please call JR files, and (B) calls.
Comments
Post a Comment