@groovy.transform.CompileStatic class DefaultConstraintFactory extends java.lang.Object
A default factory for creating constraints
Modifiers | Name | Description |
---|---|---|
protected java.lang.reflect.Constructor |
constraintConstructor |
Type | Name and description |
---|---|
org.springframework.context.MessageSource |
messageSource |
java.lang.String |
name |
java.util.List<java.lang.Class> |
targetTypes |
java.lang.Class<? extends Constraint> |
type |
Constructor and description |
---|
DefaultConstraintFactory
(java.lang.Class<? extends Constraint> constraintClass, org.springframework.context.MessageSource messageSource, java.util.List<java.lang.Class> targetTypes = [Object]) |
Type Params | Return Type | Name and description |
---|---|---|
|
Constraint |
build(java.lang.Class owner, java.lang.String property, java.lang.Object constrainingValue) |
|
boolean |
supports(java.lang.Class targetType) |
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() |