Interface ConstraintProvider
-
- All Known Subinterfaces:
ModelConstraintProvider
,ProfileConstraintProvider
- All Known Implementing Classes:
AbstractConstraintProvider
,AbstractModelConstraintProvider
,AbstractProfileConstraintProvider
public interface ConstraintProvider
An interface used to remove and/or add to the constraints used in a specific context
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<Constraint>
getConstraints()
Get the list of constraints for this constraint provider.java.util.List<java.util.function.Predicate<Constraint>>
getRemovalPredicates()
Get the list of removal predicates for this constraint provider.static <T extends ConstraintProvider>
java.util.List<T>providers(java.lang.Class<T> providerClass)
Get the list of constraint provider instances of the given type from the ServiceLoader.
-
-
-
Method Detail
-
getRemovalPredicates
java.util.List<java.util.function.Predicate<Constraint>> getRemovalPredicates()
Get the list of removal predicates for this constraint provider.- Returns:
- the list of removal predicates for this constraint provider
-
getConstraints
java.util.List<Constraint> getConstraints()
Get the list of constraints for this constraint provider.- Returns:
- the list of constraints for this constraint provider
-
providers
static <T extends ConstraintProvider> java.util.List<T> providers(java.lang.Class<T> providerClass)
Get the list of constraint provider instances of the given type from the ServiceLoader.- Type Parameters:
T
- the type of provider- Parameters:
providerClass
- the provider class- Returns:
- the list of constraint provider instances of the given type from the ServiceLoader
-
-