This issue can't be edited

Because it belongs to an archived project. Jira admins can restore projects from the archive.

Move methods related to method validation to delegate interface

Description

We decided to move the method validation methods into a separate interface for a better separation of concerns. That way the Validator interface doesn't get overly complex for a user who is only interested in plain bean validation.

Related discussion on bv-dev: http://lists.jboss.org/pipermail/beanvalidation-dev/2012-September/000534.html

Environment

None

Activity

Show:

Emmanuel Bernard October 18, 2012 at 4:32 PM

Still unhappy with the use of the word delegate but I can live with it and can revisit later

Gunnar Morling October 17, 2012 at 12:22 AM

From the discussed approaches for retrieving the method validation delegate (see discussion on mailing list) we went for the getter approach, that is, a method forMethods() which returns the delegate.
Compared to the discussed fluent approach the getter appraoch avoids repeated creation of method/constructor specific delegate objects which is an advantage performance-wise. Retrieving the validator from ValidatorFactory seemed disadvantageous regarding the configuration of validators and retrieval of constraint metadata.

Fixed

Details

Assignee

Reporter

Participants

Emmanuel Bernard
Gunnar Morling

Components

Priority

Created September 7, 2012 at 10:28 PM
Updated January 13, 2015 at 8:07 PM
Resolved October 18, 2012 at 4:32 PM