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

Make bootstrapping of script evaluators for @ScriptAssert more flexible

    Details

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

      Description

      It seems there's some trouble with using @ScriptAssert under OSGi as per this question

      Not sure whether it's a question of adding another import or what is missing really.

      So thanks to Marko's work we ended up reworking the entire approach for evaluating the script constraints. There's now a new SPI (centered around ScriptEvaluator and ScriptEvaluatorFactory) for making the retrieval of script evaluators more flexible: one can plug custom script evaluator factories that just customize the aspect of class-loading (e.g. for retrieving script engines under OSGi) or even factories that return script evaluators other than for JSR 223, e.g. for Spring's SpEL.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: