Hi,
Thanks for the info. I'll give a few more details to clarify my intended
use.
What I would like to do is to allow others to add additional
implementations for a set of interfaces. Those implementations should
then be accessed by the app.
In detail, I'm mapping multiple datasets to automatically layouted image
nodes on the network nodes and the layout depends on the type and
representation of the data in question.
So I would like to allow other users to implement a data representation
that can then be used by my app.
Therefore, (I think) the command API is not applicable in my instance.
However, when I tried to register my app with its class, it worked to
retrieve it within the same app
App app = new App(cySwingApp);
registerService(context, app, App.class, new Properties());
App app = getService(context, App.class);
But If I want to load it in a second app (to be able to add classes from
that 'plugin' to my app) I get a
java.lang.RuntimeException: Couldn't find service: myApp.App
I add the jar generated for my original app to the dependencies of the
other app and set it to provided, which seems to work, as I don't get a
"NoClassDefFound" exception, when just trying to initialize an empty
object for the App.
Any Idea what might go wrong here?
Best,
Thomas