Extend programmatic API to allow alteration of ConstraintValidator list for a given constraint

Description

Currently it's only possible to alter ConstraintValidator list associated to a given constraint via XML mapping files (see http://people.redhat.com/~ebernard/validation/#xml-mapping-constraintdefinition). The programmatic API could provide a way to do this in a typesafe manner.

If a programmatic API is added in BV 1.1 this functionality could also be addressed by the specification.

Hibernate Validator forum post https://forum.hibernate.org/viewtopic.php?f=9&t=1011508

Environment

None

Activity

Show:

Gunnar Morling June 7, 2016 at 10:00 AM

Resolved by enhancing ConstraintMapping to allow for the definition of constraints. The previously experimental feature of constraint definition contributors has been removed in favor of this solution. Thanks, !

Yoann Rodière May 3, 2016 at 11:41 PM

And here you go: https://github.com/hibernate/hibernate-validator/pull/468
If you would be so kind as to review the PR...? Thanks

Yoann Rodière May 3, 2016 at 8:19 PM

Hi Gunnar. I'm still working on it; I think I'm going to provide a pull request this evening or tomorrow.
Sorry for the delay; like I said previously, I'm currently on a very tight schedule (I really would like to be able to shower when I move in next Saturday ). I try working on this in small sessions whenever possible.

Gunnar Morling May 3, 2016 at 12:58 PM

Hey , how is it going? Let me know if you need help with anything or would like to discuss some details.

Yoann Rodière April 29, 2016 at 7:56 PM

Okay, working on that.

Fixed

Details

Assignee

Reporter

Participants

Gunnar Morling
Hardy Ferentschik
Kevin Pollet
Yoann Rodière

Components

Fix versions

Priority

Created June 27, 2011 at 10:24 AM
Updated September 1, 2016 at 8:58 PM
Resolved June 7, 2016 at 10:00 AM