[cdi-dev] [JBoss JIRA] (CDI-242) Support Bean Validation 1.1 method validation

Pete Muir (JIRA) jira-events at lists.jboss.org
Thu Aug 2 14:09:07 EDT 2012


     [ https://issues.jboss.org/browse/CDI-242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir updated CDI-242:
--------------------------

       Issue Type: Tracker  (was: Feature Request)
    Fix Version/s: 1.1 (Proposed)


Changing to tracker, as I think this should be dealt with in the Bean Validation spec.
                
> Support Bean Validation 1.1 method validation
> ---------------------------------------------
>
>                 Key: CDI-242
>                 URL: https://issues.jboss.org/browse/CDI-242
>             Project: CDI Specification Issues
>          Issue Type: Tracker
>          Components: Java EE integration
>            Reporter: Gunnar Morling
>             Fix For: 1.1 (Proposed)
>
>
> CDI should integrate with Bean Validation to support the [method validation|http://beanvalidation.org/1.1/spec/#d0e2147] feature defined in BV 1.1.
> BV specifies an annotation [@MethodValidated|http://beanvalidation.org/1.1/spec/#validationapi-triggeringmethodvalidation] which could be used as interceptor binding annotation:
> {code}
> @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) {
>         //...
>     }
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the cdi-dev mailing list