0

I have ran into an issue when programming a plugin that is dependent on another plugin. The plugin in question has 3 different versions, all of them are incomparable with each other. Instead of writing 3 separate plugins, I would like to know which .jar file exists, and import the correct one.

Note: The plugins in question are actively running on the server, and I have no clue what is running on which server.

Thanks for your help.

2
Contributors
3
Replies
4
Views
4 Years
Discussion Span
Last Post by RLS0812_1
0

I would assume your main file could simply check the availabilty of the dependencies and instantiate the correct version as needed.

Import statements are fixed at compile time, but fully qualified class names are not. You can control concrete class references at run time.

0

I did not write the origional plugin, or any of it's versions.

Edit: As of when I last checked, there are over 35,000 copies of plugin "in the wild", and I have no controle of them at all.

Edited by RLS0812_1: Added

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.