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
Support custom startup parameters for extensions #2579
Comments
@dirkbolte as we discussed last week |
Can/should we scope them to avoid conflicts between different extensions/wiremock core? Thinking about adapting something like spring's externalized configuration: |
I've wondered about that, then wondered if it's overkill. Not sure how likely it is that collisions will occur, but maybe I'm lacking imagination... |
My hope would be that this would not bloat the whole topic when it's added now - while it would be a breaking change when added later. If there would be at any time two extensions with conflicts, there's practically no way for a user to mitigate it and neither for the extension developers to adapt it with another breaking change. I can imagine one use case where we might run into conflicts relatively fast: when having extensions for subsystems like I would hope that users are very familiar with this notation, so this should hopefully not cause any usage issues. |
OK, agree playing it safe might be a good idea. How about just |
Proposal
Allow extensions to register and consume their own startup configuration options so that e.g. WireMock standalone can be started with extra parameters like
--my-extension-parameter=123
e.g. we could add an extra method to the
Extension
interface like:And one to
Options
for retrieval:This should build on top of #2578.
References
No response
The text was updated successfully, but these errors were encountered: