@Retention(value=RUNTIME) @Target(value=TYPE) public @interface Constraint
Definition
as an argument that will create the
constraint with its default settings as this will be used when a constraint
of that type is requested for a definition where it does not exist. If both a
default and a Definition
constructor are available the constructor
that takes a definition is preferred if possible.Definition.getConstraint(Class)
,
ConstraintUtil.getDefaultConstraint(Class, Definition)
Modifier and Type | Optional Element and Description |
---|---|
boolean |
mutable
States if the default constraint is mutable.
|
public abstract boolean mutable
ConstraintUtil.getDefaultConstraint(Class, Definition)
will only
be able to cache it in this case.true
by
defaultBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a