[bv-dev] Method validation - cont'd

Hardy Ferentschik hardy at hibernate.org
Mon May 14 08:53:29 EDT 2012


Some of my preferences:

On May 9, 2012, at 10:24 PM, Gunnar Morling wrote:

> * Align on approach for cross-parameter validation

I am still leaning towards #2 as described here - http://beanvalidation.org/proposals/BVAL-241/#cross_parameter
Otherwise #3

> * Should method validation methods be defined on j.v.Validator or a
> dedicated new interface?

Should be on javax.validation.Validator

> * Further discuss @MethodValidated annotation with other EGs (e.g. JAX-RS)

What's about @ValidateContract, @ContractValidated or even just @Constract 
This get the "design by contract" idea in as well and it avoids the ambiguity when
it comes to constructors.

> * Should ParameterNameProvider go into a sub-package?

which one do you have in mind there?

--Hardy


More information about the beanvalidation-dev mailing list