Details
-
Tracker
-
Resolution: Done
-
Major
-
None
-
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) { //... } }