Extend the ConstraintValidator#initialize() contract

Description

The ConstraintValidator#initialize() contract is very limited as we only pass the annotation to it.

Passing an annotation descriptor would be better as we would add additional information to the constraint.

Passing a context specific to the initialization would also be nice as we might have to pass global objects to the initialization.

See these PR for the original requirements:

Environment

None

Status

Assignee

Marko Bekhta

Reporter

Guillaume Smet

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Major
Configure