Hi,
I'm looking for an annotation-based validation framework, that would allow me to validate parameter values. Something like the following:
void someMethod(@NotBlank String foo, @NotEmpty Collection bar, @Positive Integer baz, @NotNull Object obj) {
}
Validation of the parameters should happen automatically whenever an annotated method/constructor is called, so that there no way to bypass the validation.
If I could customise the error messages produced that would be nice. I'm using Java 1.5.
Thanks, Don