[cdi-dev] [JBoss JIRA] (CDI-242) Support Bean Validation 1.1 method validation
Pete Muir (JIRA)
jira-events at lists.jboss.org
Fri Feb 15 11:12:56 EST 2013
[ https://issues.jboss.org/browse/CDI-242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Muir resolved CDI-242.
---------------------------
Assignee: Pete Muir
Fix Version/s: 1.1.PFD
(was: 1.1 (Proposed))
Resolution: Done
BV 1.1 supports this
> 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
> Assignee: Pete Muir
> Fix For: 1.1.PFD
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the cdi-dev
mailing list