Simplify Extentions api - Remove overhead with id#36
Simplify Extentions api - Remove overhead with id#36bitxon wants to merge 1 commit intowiremock:mainfrom
Conversation
263feef to
570a7a7
Compare
oleg-nenashev
left a comment
There was a problem hiding this comment.
Thanks for the patch, but I actually did it for future extensibility and traceabilty reasons. Classes are private for the same reasons - internal use for now. I would like to keep the source ID in the metadata, and to extend that in the future. At the same time, it would be possible to introduce new methods that would infer the IDs from the file names by default, I guess it would address DevX simplicity case
I understand intention of this, but here is a few things that concerns me in current api
My suggestion about api is the following withExtention(String className, File jar) // 1
withExtention(Collection<String> classNames, File jar) // 2
withExtention(Collection<String> classNames, Path directoryWithJars) // 3But if in case of |
I agree with this approach. It is one of the ways to "infer" IDs like in the previous comment |
|
FTR my Slack comment:
|
570a7a7 to
1104494
Compare
Motivation
iddoes not bring any benefits and looks redundantextensionJarsin aLinkedHashSetto preserve an order and keep only unique valuesextensionClassNamesin aLinkedHashSetto preserve an order and keep only unique value