Uploaded image for project: 'Hibernate Validator'
  1. HV-1497

Extend the ConstraintValidator#initialize() contract

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0.5.Final
    • Component/s: engine
    • Labels:
      None

      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:

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: