Hardy, it would be nice to have something like: {code} <bean class="com.my.User" ignore-annotations="true"> <field name="email"> <constraint annotation="javax.validation.constraints.Pattern"> <element name="regexp"> <constant static-field="Regexps.EMAIL_REGEXP"/> </element> </constraint> </field> ..... </bean> {code}
So, I an not aware of complexity of implementation, but this is very similar to what is done in SpringFramework xml configuration.
Thanks
|