timefold-solver icon indicating copy to clipboard operation
timefold-solver copied to clipboard

Support @PlanningSolution.autoDiscoverMemberType on quarkus

Open ge0ffrey opened this issue 7 months ago • 0 comments

Motivation: we know realize that the @PlanningSolution class itself is not boilerplate. But much of it's annotations are.

Let's support this feature on quarkus too:

public @interface PlanningSolution {

    /**
     * Enable reflection through the members of the class
     * to automatically assume {@link PlanningScore}, {@link PlanningEntityCollectionProperty},
     * {@link PlanningEntityProperty}, {@link ProblemFactCollectionProperty}, {@link ProblemFactProperty}
     * and {@link ConstraintWeightOverrides} annotations based on the member type.
     *
     * <p>
     * This feature is not supported under Quarkus.
     * When using Quarkus,
     * setting this to anything other than {@link AutoDiscoverMemberType#NONE} will result in a build-time exception.
     */
    @NonNull
    AutoDiscoverMemberType autoDiscoverMemberType() default AutoDiscoverMemberType.NONE;

ge0ffrey avatar Apr 25 '25 10:04 ge0ffrey