org.optaplanner.core.api.domain.constraintweight

## Annotation Type ConstraintConfiguration

-     @Target(value=TYPE)
       @Retention(value=RUNTIME)
      public @interface ConstraintConfiguration

  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 Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `String` | `constraintPackage` The namespace of the constraints.

- - ### Element Detail

    - #### constraintPackage

          public abstract String constraintPackage

      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:
        ""

Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.