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

Gunnar Morling (JIRA) jira-events at lists.jboss.org
Wed Jul 25 16:16:07 EDT 2012


Gunnar Morling created CDI-242:
----------------------------------

             Summary: Support Bean Validation 1.1 method validation
                 Key: CDI-242
                 URL: https://issues.jboss.org/browse/CDI-242
             Project: CDI Specification Issues
          Issue Type: Feature Request
          Components: Java EE integration
            Reporter: Gunnar Morling


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