[bv-dev] Method validation - cont'd

Matt Benson mbenson at apache.org
Mon May 14 11:53:52 EDT 2012


On Mon, May 14, 2012 at 10:48 AM, Emmanuel Bernard
<emmanuel at hibernate.org> wrote:
>
> On 14 mai 2012, at 17:18, Matt Benson wrote:
>
>>>>
>>>> * Should method validation methods be defined on j.v.Validator or a
>>>> dedicated new interface?
>>>
>>> Should be on javax.validation.Validator
>>
>> Destroying backward compatibilty?  Not such a big deal for full-blown
>> implementations, perhaps, but what about interoperability libraries
>> that may, for whatever reason, implement javax.validation.Validator?
>> Shouldn't a user be able to upgrade to a Bean Validation 1.1
>> implementation and still use libraries built against Bean Validation
>> 1.0?
>
> No I don't think that's a realistic goal. It would force us to use some untyped unwrap() style method to
> add features to Bean Validation.

But isn't that the reason #unwrap() is part of the Validator and
ValidatorFactory interfaces?

Matt

> _______________________________________________
> beanvalidation-dev mailing list
> beanvalidation-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/beanvalidation-dev



More information about the beanvalidation-dev mailing list