i am writing an eclipse plugin that will connect to a server (no database!). for each platform and each release of said server there will be a different jar to use for connecting and a different set of .dll/.so files used by said driver jar.
i'd like to create a mechanism like the one for jdbc drivers allowing the user to create a profile for a specific configuration of platform/release and select an existing profile to create a connection to a specific server.
thus, it is pretty much similar to what most databse plugins do where one can configure different jdbc drivers for different databases and use such a profile to create a databse connection.
maybe i haven't found the right search terms, but so far i failed to get an example how to write this kind of mechanism.
can someone please point me to a working example for eg jdbc?
to summarize: - store location of jar - store location of native shared libraries (dll/so) - when connection export the location of the shared libs (at least in linux i currently need to export LD_LIBRARY_PATH) and use/load the configured jar