Interface ConstraintFactory<A extends Annotation>
- Type Parameters:
A- the annotation type
public interface ConstraintFactory<A extends Annotation>
Factory for creating constraints from annotations.
-
Method Summary
Modifier and TypeMethodDescription@NotNull Constraint<?>Creates a constraint from the annotation instance.Gets the annotation type this factory handles.
-
Method Details
-
create
Creates a constraint from the annotation instance.- Parameters:
annotation- the annotation- Returns:
- the constraint
-
getAnnotationType
Gets the annotation type this factory handles.- Returns:
- the annotation class
-