Skip to content

Dynamic registeration of plugins #144

Description

@radhay-1199

Problem statement: Everyone can create a plugin which is again a class with methods to generate a doc. Now currently if I do so I have to go to my factory and update the code there for the new plugin and in the app module too I have to go and add that as the provider. but I don't want this to be so much hassle.
Proposed solution:

  • some annotation over these plugin classes with tokens. I can use this token itself in the factory class to return the correct instance of the plugin. and for the app module, I can scan all the classes with my annotation and populate them in providers during runtime only. now i won't have to go and change any existing file if I add a new plugin

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions