Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1197

CDIAwareConstraintValidatorFactory should fall back to delegate when CDI is not active

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.0
    • None
    • BeanValidation-Module
    • None

    Description

      If there is no contextual instance for a class, CDIAwareConstraintValidatorFactory.getInstance() falls back on the delegate ConstraintValidatorFactory. If the BeanManagerProvider is not active, it should have the same fallback.

      This change would make testing in mixed environments easier (eg a mixture of CDI-Unit tests where Weld is active, and plain JUnit tests where Weld is not active), since CDIAwareConstraintValidatorFactory may be configured in validation.xml and could be difficult to override.

      Attachments

        Issue Links

          Activity

            People

              johndament John D. Ament
              sflanigan Sean Flanigan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: