Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1617

Add support for injection in constraint validators on Java SE

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • None
    • CDI Integration
    • None

    Description

      On Java SE add support for injection in Bean Validation constraint validators, like in this example from Hibernate Validator Reference Guide

      public class ValidLicensePlateValidator implements ConstraintValidator<ValidLicensePlate, String> {
      
          @Inject
          private VehicleRegistry vehicleRegistry;
      
          //rest of the class
      }
      

      Currently on Java SE the field vehicleRegistry is not injected.

      Attachments

        Activity

          People

            rsigal@redhat.com Ronald Sigal
            rehak.michal Michal Rehak (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: