interface ConstraintRegistry
A registry of Constraint factories
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
DEFAULT_CONSTRAINTS |
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract void |
addConstraint(java.lang.Class<? extends Constraint> constraintClass, java.util.List<java.lang.Class> targetPropertyTypes)Adds a constraint for the given class |
|
abstract void |
addConstraint(java.lang.Class<? extends Constraint> constraintClass)Adds a constraint for the given class |
|
abstract void |
addConstraintFactory(ConstraintFactory constraintFactory)Adds a constraint factory |
|
abstract java.util.List<ConstraintFactory> |
findConstraintFactories(java.lang.String name)Finds a named constraint |
<T extends Constraint> |
abstract 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
name - The name of the constraint (example: nullable, blank etc.)constraintFactory - The constraint factoryFinds a named constraint
name - The short name of the constraintFinds a constraint by class
name - The short name of the constraint