Can plugins in CustusX implement multiple interfaces at once?

I want to create a plugin (or two?) For CustusX . The plugin is supposed to be used to guide the user through the recording workflow. At the same time, it is supposed to use an image stream and provide another image stream (original stream + image overlay).

So it must have a GUI component (and as such must implement the GUIExtenderService), but it must also provide a StreamerService. Is it possible together in one plugin or do I need to split it into two plugins?

+3


source to share


1 answer


Yes, one plugin can provide multiple services. Plugins and services are two separate OSGi concepts . CustusX bases its plugin infrastructure on the CTK implementation of OSGi.



In general, it is preferable to bundle one function inside a plugin. If multiple services are required to implement this feature (typically both the backend and the frontend), you should stick with one plugin to minimize the number of plugins and keep related code in one place.

+3


source







All Articles