cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Marking JAXRSBeanValidationFeature as a Server scoped provider
Date Mon, 24 Oct 2016 11:56:27 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 54413b3a1 -> ad7a7ba7d


Marking JAXRSBeanValidationFeature as a Server scoped provider


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/ad7a7ba7
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/ad7a7ba7
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/ad7a7ba7

Branch: refs/heads/3.1.x-fixes
Commit: ad7a7ba7da2a43c9646d04be24bb4c5516aee981
Parents: 54413b3
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Oct 24 12:54:40 2016 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Oct 24 12:56:10 2016 +0100

----------------------------------------------------------------------
 .../apache/cxf/jaxrs/validation/JAXRSBeanValidationFeature.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/ad7a7ba7/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/validation/JAXRSBeanValidationFeature.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/validation/JAXRSBeanValidationFeature.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/validation/JAXRSBeanValidationFeature.java
index 318a2b6..b939904 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/validation/JAXRSBeanValidationFeature.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/validation/JAXRSBeanValidationFeature.java
@@ -19,12 +19,15 @@
 package org.apache.cxf.jaxrs.validation;
 
 import org.apache.cxf.Bus;
+import org.apache.cxf.annotations.Provider;
+import org.apache.cxf.annotations.Provider.Scope;
+import org.apache.cxf.annotations.Provider.Type;
 import org.apache.cxf.feature.AbstractFeature;
 import org.apache.cxf.interceptor.InterceptorProvider;
 import org.apache.cxf.validation.BeanValidationInInterceptor;
 import org.apache.cxf.validation.BeanValidationProvider;
 
-
+@Provider(value = Type.Feature, scope = Scope.Server)
 public class JAXRSBeanValidationFeature extends AbstractFeature {
 
     private BeanValidationProvider validationProvider;


Mime
View raw message