-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
Refactor validation of PluginDescriptors #130
Conversation
…er, now pluggable.
2 similar comments
My idea is to move the validation process from |
Agree that this was a more elegant location for the validation. I also had to fix some of the validation tests that previously failed by explicitly calling validation from the test code. |
I propose you to move the code from PluginDescriptorUtils in AbstractPluginManager and to delete:
You can add a Is it OK for you? |
Think I've accommodated most of it now. Found no AbstractPluginManagerTest so I created a DefaultPluginManagerTest |
Thanks! Good work. |
Good solution, easy to plug own validation. In my scenario I accept a descriptor without a PluginClass since Solr already has another way of handling that. |
Was duplicated in each finder, now pluggable.
Did this through an AbstractPluginDescriptorFinder so everyone get the default behavior ootb.
To plug in your own validator you'd need to Override
createPluginDescriptorFinder()
in your PluginManager.