I am creating a server that loads the module. Each module is a .jar
file . The module inside the jar has all the sections that need it. The server needs to read the jar, find the main square (its main method is not only the class which works the module but not as a separate program), the object of that class is created and stored in vector Does the module have so much that it can reach a specific module on the basis of work.
How can I do this?
As far as the server is listening and receiving the request, but there is no module to employ the job, since the modules of my vector are empty.
For this, there is a provider configuration file in your JAR, This standard is designed to load modules in INF / Service Directory Java. If you need more robust module loading, then you would like to see the OSGI.
Comments
Post a Comment