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:55:00 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 6d2fe1245 -> 595d30354


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/595d3035
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/595d3035
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/595d3035

Branch: refs/heads/master
Commit: 595d303549989358ccf5b424d62c1f2553ab522b
Parents: 6d2fe12
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:54:40 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/595d3035/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