Skip to content
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
2 tasks
saep opened this issue Dec 29, 2018 · 0 comments
Open
2 tasks

Make plugins overrideable #69

saep opened this issue Dec 29, 2018 · 0 comments

Comments

@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
Projects
None yet
Development

No branches or pull requests

1 participant