I'm trying to make my Java app modular, so that there will be the core base module that a client will have to aqcuire, but he/ she will be able to add additional features/ plugins as they come up, or as her needs extend. Like how IDEs like NetBeans go about it.
I plan on having a sub-directory, called modules/ plugins, in the clients pc where any plugin applications will be included as .jar files. The main module will, when a user launches the application, include these other plugins in the final item, so that, for example, a Stage will have buttons from both the main module and plugin modules on the same scene.
I'm fluent with elgg, which uses views to do this. Borrowing from this, I could have a HBox, for example on the main module that gets populated with Buttons from the different plugins on launching the application.
How can I go about having core_base_module.jar below call all plugins in the plugins directory below. In other words, how can I go about having one .jar
file calling another .jar
file?
Sample directory structure:
main dir/---core_base_module.jar
/---plugins ---/chat.jar
/videoplayer.jar
/like.jar
/unlike.jar
/etc.jar
/etc_etc.jar