Do you know an implementation of springframework's LocalValidatorFactoryBean
other than hibernate-validator?
We don't want hibernate-validator because it fetches too many dependencies in a small spring-mvc 3 application that doesn't use hibernate.
Do you know an implementation of springframework's LocalValidatorFactoryBean
other than hibernate-validator?
We don't want hibernate-validator because it fetches too many dependencies in a small spring-mvc 3 application that doesn't use hibernate.
I can't precisely answer you question with respect to other implementations of LocalValidatorFactoryBean
, but what concerns the dependencies of Hibernate Validator, there are actually not that many.
The only strict dependency besides the JSR 303 API (validation-api-1.0.0.GA.jar) is slf4j-api-1.5.6.jar plus a binding for it (here you could use the NOP binding for instance if you don't want to pull in a logger).
All the other dependencies are optional and can be left out depending on your setup/requirements (e.g. JAXB is only required when working with XML descriptors and running on JDK 5).
As pointed by Raghuram, there is an Apache Bean Validation (formerly agimatec) which seems to be more efficient than Hibernate one's.