经过一个月疯狂的工作,以及两周集中的疯狂我们最后,昨晚我们建议的最终草案已经正式移交给JCP。当然所有内容都是开源的,你可以通过下面链接获取相关信息:
the spec
the JavaDoc
and the API JAR: maven coordinates javax.validation:validation-api:1.1.0.CR1
Bean Validation 1.1 主要包括以下内容:
work done entirely in the open
support for dependency injection and better integration with CDI
support for method and constructor validation
support for group conversion when cascading
support for EL based message interpolation
与 Beta4 版本的区别:
rework of the JavaDoc
move to @SupportValidationTarget on ConstraintValidator instead of the additional @CrossParameterConstraint on the constraint to mark a constraint as cross-parameter
many more examples in the specification
improve node creation logic when nodes are added programmatically
improve the creation logic of custom nodes when using the programmatic API of ConstraintViolationBuilder in a ConstraintValidator
项目主页:http://bval.apache.org/
下载地址:http://bval.apache.org/downloads.html
来自:开源中国社区