Alright I'll implement it like that then, the API is already changed as
proposed (
https://github.com/gunnarmorling/hibernate-validator/blob/dcabe3141ae1c3a...
)
For HV 4.2 we could also do the following:
>>
>> TypeDescriptor extends ElementDescriptor {
>>
>> boolean isTypeConstrained();
>> Set<MethodDescriptor> getConstrainedMethods();
>> MethodDescriptor getConstraintsForMethod(Method method);
>>
>> getBeanDescriptor();
>> }
>>
>
+1