You could use spring for this: http://docs.spring.io/spring/docs/3.2.4.RELEASE/javadoc-api/org/springframework/validation/beanvalidation/BeanValidationPostProcessor.html
2013/10/10 Christina Kaskoura <[email protected]> > Hi Sergey, > > Thanks for your reply. So until this feature is implemented is there some > other suggested way to do bean validation in JAX-RS without doing it > manually? What I would like to be able to do (which is why I was wondering > about JSR303 integration) is something like the following: > > @POST > @Path("foo") > @Produces("application/json") > public String registerUser(@NotNull @FormParam("username") String userame) > { > ... > } > > Thank you, > Christina > > > On 10/10/2013 11:59, Sergey Beryozkin wrote: > >> Hi >> On 10/10/13 08:25, Christina Kaskoura wrote: >> >>> Hello. >>> >>> Can you please let me know if JSR303 integration made it into the latest >>> CXF for JAX-RS 2.0? That wasn't the case back in January >>> (http://mail-archives.apache.**org/mod_mbox/cxf-users/201301.** >>> mbox/%3C50FD5D18.3010607@**gmail.com%3E<http://mail-archives.apache.org/mod_mbox/cxf-users/201301.mbox/%[email protected]%3E>) >>> >>> but has anything changed in the last year or so? >>> >>> We have started looking into supporting JSR-349 (Bean Validation 1.1), >> see >> >> https://issues.apache.org/**jira/browse/CXF-5309<https://issues.apache.org/jira/browse/CXF-5309> >> >> Cheers, Sergey >> >>> Thank you, >>> Christina >>> >> >> >> > -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen
