[hibernate-issues] [Hibernate-JIRA] Commented: (HV-415) Rename validateParameters to validateAllParameters

Gunnar Morling (JIRA) noreply at atlassian.com
Sun Jan 16 07:09:07 EST 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=39648#action_39648 ] 

Gunnar Morling commented on HV-415:
-----------------------------------

Some more thoughts in this context: 
* Currently the classes related to method validation are located directly in org.hibernate.validator. I'm wondering whether we should create a new package "methodvalidation" and move this stuff there. According to it's JavaDoc the top-level package was intended for classes related to bootstrapping, and I think this makes pretty much sense.
* Currently MethodValidator is an interface right on it's own. In especially one can't invoke any of Validator's methods such as validate() on a MethodValidator reference. So probably MethodValidator should extend Validator. But I'm also wondering whether we should have a dedicated interface for method validation or if we should provide a more general HV-specific extension of the Validator interface which might add also other functionalities to Validator (though I can't think of any right now). I'd prefer the latter approach, WDYT?

> Rename validateParameters to validateAllParameters
> --------------------------------------------------
>
>                 Key: HV-415
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-415
>             Project: Hibernate Validator
>          Issue Type: Improvement
>          Components: engine
>    Affects Versions: 4.2.0.Beta1
>            Reporter: Emmanuel Bernard
>             Fix For: 4.2.0.Beta2
>
>
> I got confused by validateParameter vs validateParameters
> I think changing the name to validateAllParameters will solve the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list