public interface ConstraintRegistry
A registry of Constraint factories
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addConstraint(java.lang.Class<? extends Constraint> constraintClass, java.util.List<java.lang.Class> targetPropertyTypes)Adds a constraint for the given class |
|
public void |
addConstraint(java.lang.Class<? extends Constraint> constraintClass)Adds a constraint for the given class |
<T extends Constraint> |
public void |
addConstraintFactory(ConstraintFactory<T> constraintFactory)Adds a constraint factory |
<T extends Constraint> |
public java.util.List<ConstraintFactory<T>> |
findConstraintFactories(java.lang.String name)Finds a named constraint |
<T extends Constraint> |
public java.util.List<ConstraintFactory<T>> |
findConstraintFactories(java.lang.Class<T> constraintType)Finds a constraint by class |
Adds a constraint for the given class
constraintClass - The constraint classtargetPropertyTypes - the target types if anyAdds a constraint for the given class
constraintClass - The constraint classAdds a constraint factory
constraintFactory - The constraint factoryFinds a named constraint
name - The short name of the constraintFinds a constraint by class
constraintType - The class of the constraint