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

Module: conf-based system for Vault module registration #39

Open
eledhwen opened this issue Apr 21, 2022 · 0 comments
Open

Module: conf-based system for Vault module registration #39

eledhwen opened this issue Apr 21, 2022 · 0 comments

Comments

@eledhwen
Copy link
Contributor

Consider adding a conf-based system for module registration, most common use-case being the registration of modules on the default parser.

As it stands Vault requires the developer to handle module registration somewhere, most likely in a static block in the Main class, which can be a tad confusing at first glance, but also a bit of a pain to manage if several contexts coexist (most common issue being the program Main vs. tests).

It would be easy enough to add a module registration configuration, probably also allowing the developer to specify which file to use if a specific context requires a switch (could be handled via system properties and/or env vars).

The file itself could be a very basic conf file or a vault yml file (vanilla Vault, that is). First one offers extremely simple syntax as a plus, but limits capability if some modules require configuration (ctor arguments for instance).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant