@groovy.transform.CompileStatic class DefaultConstraintRegistry extends java.lang.Object
Default implementation of the ConstraintRegistry interface. Provides lookup and registration of constraints
Modifiers | Name | Description |
---|---|---|
protected java.util.Map<java.lang.String, java.util.List<ConstraintFactory>> |
factoriesByName |
|
protected java.util.Map<java.lang.Class<? extends Constraint>, java.util.List<ConstraintFactory>> |
factoriesByType |
|
protected org.springframework.context.MessageSource |
messageSource |
Constructor and description |
---|
DefaultConstraintRegistry
(org.springframework.context.MessageSource messageSource) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addConstraint(java.lang.Class<? extends Constraint> constraintClass, java.util.List<java.lang.Class> targetPropertyTypes = [Object]) |
|
void |
addConstraintFactory(ConstraintFactory factory) |
|
java.util.List<ConstraintFactory> |
findConstraintFactories(java.lang.String name) |
<T extends Constraint> |
java.util.List<ConstraintFactory<T>> |
findConstraintFactories(java.lang.Class<T> constraintType) |
|
void |
setConstraintFactories(ConstraintFactory... constraintFactories) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |