timefold-solver
timefold-solver copied to clipboard
Support @PlanningSolution.autoDiscoverMemberType on quarkus
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;