Skip to content

Document configuring and exposing a ValidatorFactory not just a Validator [SPR-6609] #11275

@spring-projects-issues

Description

@spring-projects-issues

Mike Youngstrom opened SPR-6609 and commented

Sometimes a ValidatorFactory is required by thirdparty libraries such as JPA 2.0 with the "javax.persistence.validation.factory" property. It would be nice if it were possible to configure a single ValidatorFactory that can be passed to JPA 2.0 and LocalValidatorFactoryBean to help provide a more consistent validation configuration across an application's configuration.

This could simply be a bean similar to LocalValidatorFactoryBean but instead of providing a Validator it provided a ValidatorFactory.

Then modifying LocalValidatorFactoryBean or creating a new bean based on SpringValidatorAdapter that accepts a ValidatorFactory.


Affects: 3.0 GA

Referenced from: commits a70bb40

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions