Description:
|
Describe typical behavior of method validation interceptors in section [5.4|http://beanvalidation.org/latest-draft/spec/#validationapi-triggeringmethodvalidation]. The HV reference guide says on this subject:
{quote} Such an integration layer would typically intercept each method call to be validated, validate the call's parameters, proceed with the method invocation and finally validate the invocation's return value. If any of the validation steps yields a non-empty set of constraint violations the integration layer would typically throw a MethodConstraintViolationException wrapping these violations which in turn guarantees that the call flow only arrives at the method's implementation respectively call site if all pre- respectively postconditions are fulfilled. {quote}
|