[
https://issues.apache.org/jira/browse/CXF-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13788159#comment-13788159
]
Sergey Beryozkin commented on CXF-5309:
---------------------------------------
According to http://beanvalidation.org/1.1/, what is new there is a method
level validation which is what JAX-RS 2.0 requires from the stacks implementing
its chapter 7.
That said, apparently, Apache BVal allows for a method-level validation too:
http://bval.apache.org/obtaining-a-validator.html
which seems to depend on Guice...
To be honest I'd prefer the simplest option possible :-), as far as the
integration is concerned. If this is what Hibernate Validator can offer then it
probably makes sense to start from using it to support the integration for now.
The other thing is that JAX-RS 2.0 talks about JSR-339, so I guess for CXF to
claim it supports an optional JAX-RS 2.0 BeanValidation then it has to be
Hibernate given that it implements it.
So I guess at the moment I'd vote for using a Hibernate. Ideally though we
would write it such, the CXF validation layer, that if users will want to use
Apache BVal, then it would just work by getting it installed
> Support Bean Validation API for JAX-RS
> --------------------------------------
>
> Key: CXF-5309
> URL: https://issues.apache.org/jira/browse/CXF-5309
> Project: CXF
> Issue Type: Sub-task
> Components: JAX-RS, JAX-WS Runtime
> Reporter: Sergey Beryozkin
>
--
This message was sent by Atlassian JIRA
(v6.1#6144)