Annotation[] annotations = method.getAnnotations();
for (Annotation annotation : annotations) {
if (!isValidationAnnotation(annotation)) {
continue;
}
MethodValidationAnnotationHandler handler = handlerRegistry.findMethodHandler(annotation, clazz, method);
if (handler == null) {
logger.warn("No handler is defined for annotation '" + annotation.annotationType().getName() +
"'... Annotation will be ignored...");
} else {
handler.handleAnnotation(annotation, clazz, method, configuration);
}
}
}
}