Bean Validation

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Java Bean Validation (JSR 303) is a framework that has been approved by the JCP as of 16 November 2009 and is accepted as part of the Java EE 6 specification. Bean Validation defines a metadata model and API for JavaBean validation. The metadata source is annotations, with the ability to override and extend the meta-data through the use of XML validation descriptors. The Hibernate team provides with Hibernate Validator the reference implementation of Bean Validation and also created the Bean Validation TCK any implementation of JSR 303 needs to pass.

Current Version[edit]

Bean Validation 1.1 (JSR 349) improves upon the initial version 1.0. Significant changes[1] include:

  • Validation of method arguments and return value
  • Dependency Injection
  • More open process in developing the specification

Final release of the 1.1 specification occurred 2013-05-24.

Further reading[edit]

References[edit]

  1. ^ Emmanuel, Bernard. Red Hat, Inc. http://beanvalidation.org/1.1/changes/. Retrieved 2014-08-17.  Missing or empty |title= (help)