<classname>LocalValidatorFactoryBean</classname> implements both <code>javax.validation.Validator</code> and <code>org.springframework.validation.Validator</code>.
You may inject a reference to one of these two interfaces into beans that need to invoke validation logic.
<classname>LocalValidatorFactoryBean</classname> implements both <code>javax.validation.ValidatorFactory</code>
and <code>javax.validation.Validator</code>, as well as Spring's <code>org.springframework.validation.Validator</code>.
You may inject a reference to either of these interfaces into beans that need to invoke validation logic.
</para>
<para>
Inject a reference to <code>javax.validation.Validator</code> if you prefer to work with the JSR-303 API directly: