Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-242

Support Bean Validation 1.1 method validation

    XMLWordPrintable

Details

    • Tracker
    • Resolution: Done
    • Major
    • 1.1.PFD
    • None
    • Java EE integration
    • None

    Description

      CDI should integrate with Bean Validation to support the method validation feature defined in BV 1.1.

      BV specifies an annotation @MethodValidated which could be used as interceptor binding annotation:

      @MethodValidated
      public class OrderService {
      
          public OrderService(@NotNull CreditCardProcessor creditCardProcessor) {
              //...
          }
      
          public void placeOrder(
              @NotNull @Size(min=3, max=20) String customerCode,
              @NotNull Item item,
              @Min(1) int quantity) {
      
              //...
          }
      }
      

      Attachments

        Activity

          People

            pmuiratbleepbleep Pete Muir (Inactive)
            gunnar.morling Gunnar Morling
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: