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
HV-484: API/SPI/internal split #105
Conversation
… instead of Constraint#validatedBy in order to avoid reference to internal package from public constraint package
…ndleLocator in order to avoid unwanted dependency from API to impl package
…eBundleLocator by duplicating code for class loader retrieval
Hibernate Search uses the following rules:
Do you want and follow the same rules? |
Personally I'm preferring
After discussing the options, Hardy and I came to the conclusion that we prefer the approach with |
We use
OK. For the record, I used almost the same arguments to get the technical level at the bottom ;) |
…ther Hibernate projects
I've renamed
Hmmm, that's interesting. I hoped these arguments would be absolutely convincing to do it the way I/we did it ;-) I've also checked some other projects (e.g. JDT, Aether etc.) and it seemed to me that the "distinction-at-top-level" approach is more common. |
Looking... |
Same here, I think internal is better. impl is biased, because it is in most cases used to distinguish between an interface and its implementation. Core uses also internal so it is hard to align consistently across all projects. |
+1 to all of these arguments |
Merged |
The pull request comprises the following changes:
org.hibernate.validator.internal
There are still some references from public packages to internal ones which we can't remove now without breaking existing client code based on the public API. As discussed with Hardy, we'll address these dependencies in HV 5.0 where some breaking changes will be inevitable anyways.
I created a Clirr report for the change and didn't notice any changes to the public API relevant to clients.