Jump to content

Bean Validation

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 77.56.53.183 (talk) at 23:56, 14 January 2016. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

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.

References

  1. ^ Emmanuel, Bernard. "Bean Validation 1.1 goals". Red Hat, Inc. Retrieved 2014-08-17.

Further reading