Comment:
|
@MethodValidated is out as being judged not useful.
There are several angles to let developers customize method validation:
- leave it specific to each provider (easy way but feeling incomplete) - leave it to the interception technology (ie CDI, AspectJ etc), that's just moving the issue around and we need to define it for CDI anyways - offer a component customizing the group to validate and whether or not to validate a method - We should also offer a way to disable validation entirely in the xml deployment descriptor
|