Annotation Interface ConstraintConfiguration
@Deprecated(forRemoval=true,
since="1.13.0")
@Target(TYPE)
@Retention(RUNTIME)
public @interface ConstraintConfiguration
Deprecated, for removal: This API element is subject to removal in a future version.
Allows end users to change the constraint weights, by not hard coding them.
This annotation specifies that the class holds a number of
ConstraintWeight annotated members.
That class must also have a weight for each of the constraints.
A PlanningSolution has at most one field or property annotated with ConstraintConfigurationProvider
with returns a type of the ConstraintConfiguration annotated class.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDeprecated, for removal: This API element is subject to removal in a future version.The namespace of the constraints.
-
Element Details
-
constraintPackage
String constraintPackageDeprecated, for removal: This API element is subject to removal in a future version.The namespace of the constraints.This is the default for every
ConstraintWeight.constraintPackage()in the annotated class.- Returns:
- defaults to the annotated class's package.
- Default:
- ""
-
ConstraintWeightOverridesinstead.