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 Type
    Method
    Description
    resolveForProperty(String property, Class<?> clazz)
    Resolves and returns the constraints for the given property on the given clazz.
  • Method Details

    • resolveForProperty

      List<Constraint> resolveForProperty(String property, Class<?> clazz)
      Resolves and returns the constraints for the given property on the given clazz. If there are no constraints, an empty list is returned.
      Parameters:
      property - the property
      clazz - the class
      Returns:
      the list of constraints, never null