OVal is an extensible object validation framework for Java 5 or later. Annotations (NotNull) or XML configuration files can be used to express class constraints.
OVal can optionally use AspectJ to enforce automatic validation (programming by contract).
Here are some key features of "OVal":
· support for constraints specified for method parameters at interface level
· support for inherited constraints
· Spring 2.0 XSD configuration support
· implement JSR303 http://jcp.org/en/jsr/detail?id=303
· provide tighter integration with web-app frameworks (JSF, Struts, Wicket etc)
Requirements:
· Java
What's New in This Release: [ read full changelog ]
· added Brazilian Portuguese translation of the constraint violation messages [ 2593104 ] (thanks to Leonardo Pinto)
· introduced an interface implemented by Validator for supporting easier mocking
· fixed [ 2493925 ] java.util.NoSuchElementException if @AssertValid is used
· fixed [ 2495825 ] The profile feature of Validator is not thread safe
· fixed [ 2493379 ] array types in xml based configuration
· fixed [ 2579897 ] xml based configuration related to post/pre checks
· fixed [ 2723344 ] Should not call any method on not fully initialized object
· fixed [ 2723413 ] translated JDK exception should keep the cause
· French translation updated (thanks to Éric Vigeant)
· upgraded Groovy 1.6.2, MVEL 2.0.8, Paranamer 1.3, JRuby 1.2.0, cglib 2.2,Spring 2.5.6SEC01
· removed the DTD for XML Configuration, use the XSD instead
· fixed NPE in JDK Logger implementation (thanks to Carsten Siedentop)
· added an @Email constraint (thanks to Musachy Barosso)