New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make plugins overrideable #69

Open
saep opened this Issue Dec 29, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@saep
Copy link
Member

saep commented Dec 29, 2018

If you include a list of plugins from a module and you want to configure one of the plugins differently or replace it with a different configuration, it is currently necessary to explicitly redefine the whole list. It is probably easier to use the last definition.

To implement this, it is necessary to identify plugins and only start the last definition of the plugin.

  • add name :: String field to Plugin data type
  • implement logic to take the newest definition (i.e. the last occurrence with the same name) when plugins are initialized/started

Possible negative side effects:

  • Plugins which happen to have the same name cannot be started from the same process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment