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.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
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.