Skip to content

Generic solution for enabling/disabling plugins #309

@klues

Description

@klues

Often it makes sense to be able to enable or disable plugins at model runtime, e.g. enabling the ComPort plugin only if it is needed and preventing error messages at startup if the COM port is not available.

#295 implements enabling/disabling for the COM port plugin, #294 for the Averager plugin.

It would be great to implement a generic solution for enabling/disabling plugins so that it isn't necessary to implement it multiple times in multiple plugins. Some solutions could be:

  1. A complex solution for this could be to implement composition of bundle descriptors, so we could define generic functionality.
  2. A simple solution could be to create a plugin which allows to control the lifecycle and properties of any other plugin.
  3. define some generic functionality for enabling/disabling a plugin in a superclass DeactivatablePlugin and Plugins can derive from this class

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority 3The issue is nice but only has low priorityenhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions