On 31 Jan 2014, at 10:07, Gunnar Morling <gunnar(a)hibernate.org> wrote:
Related to that, I think it should be simpler to add additional
constraints in a "global" manner than it is today. One possible way would be to
support registering validator implementations using the service loader SPI, by providing a
file META-INF/services/javax.validation.ConstraintValidator which lists additional
implementations. This avoids the XML and allows to add a JAR with validators to an
application without further need for registration.
+1 It’s probably another thing we will experiment with for HV 5.2