OVal is a generic Java 5 based object validation framework that uses annotations to express constraints and AspectJ to handle automatic validation (programming by contract).
OVal allows you to:
- to specify constraints for class fields and method return values
- to easily validate objects on demand
- to specify constraints for constructor parameters that are automatically checked when the constructor is called
- to specify constraints for method parameters that are automatically checked when the method is called
- to enforce full object validation after an object instance has been created
- to enforce full object validation before a method of the object is called
- to enforce full object validation after a method of the object is called
- to either let OVal throw constraint violation exceptions during automatic checks or alternatively notify constraint violation listeners.
- to easily create custom constraints
Product's homepage
What's New in This Release: [ read full changelog ]
· This version adds Validator.reportConstraintViolation, allowing check implementations to generate more than one constraint violation.
· It adds @Constraint.List annotations that can hold multiple constraint annotations of the same type. It adds @Email(allowPersonalName=true/false).
· It adds add/remove CheckInitializationListener methods to AnnotationsConfigurer and XMLConfigurer.
· It adds BeanInjectingCheckInitializationListener, allowing Spring dependencies to be injected into Check instances.
· It adds support for constraints specified for method parameters at interface level: @Guard(inspectInterfaces=true).