Interface ConstraintResolver
- All Known Implementing Classes:
ValidatorConstraintResolver
public interface ConstraintResolver
An abstraction for resolving a class's constraints.
- Author:
- Andy Wilkinson
-
Method Summary
Modifier and TypeMethodDescriptionresolveForProperty
(String property, Class<?> clazz) Resolves and returns the constraints for the givenproperty
on the givenclazz
.
-
Method Details
-
resolveForProperty
Resolves and returns the constraints for the givenproperty
on the givenclazz
. If there are no constraints, an empty list is returned.- Parameters:
property
- the propertyclazz
- the class- Returns:
- the list of constraints, never
null
-