cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amic...@apache.org
Subject cxf-dosgi git commit: Add ContextResolver as valid provider class
Date Thu, 02 Feb 2017 21:55:57 GMT
Repository: cxf-dosgi
Updated Branches:
  refs/heads/master dcaa6be17 -> 628a128b6


Add ContextResolver as valid provider class


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

Branch: refs/heads/master
Commit: 628a128b6aba436672b8329888658ad2e282db45
Parents: dcaa6be
Author: Amichai Rothman <amichai@apache.org>
Authored: Mon Jan 30 15:01:51 2017 +0200
Committer: Amichai Rothman <amichai@apache.org>
Committed: Tue Jan 31 17:14:01 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/cxf/dosgi/dsw/handlers/rest/RsProvider.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-dosgi/blob/628a128b/provider-rs/src/main/java/org/apache/cxf/dosgi/dsw/handlers/rest/RsProvider.java
----------------------------------------------------------------------
diff --git a/provider-rs/src/main/java/org/apache/cxf/dosgi/dsw/handlers/rest/RsProvider.java
b/provider-rs/src/main/java/org/apache/cxf/dosgi/dsw/handlers/rest/RsProvider.java
index 7b46571..5ef58d2 100644
--- a/provider-rs/src/main/java/org/apache/cxf/dosgi/dsw/handlers/rest/RsProvider.java
+++ b/provider-rs/src/main/java/org/apache/cxf/dosgi/dsw/handlers/rest/RsProvider.java
@@ -29,6 +29,7 @@ import java.util.List;
 import java.util.Map;
 import java.util.Set;
 
+import javax.ws.rs.ext.ContextResolver;
 import javax.ws.rs.ext.ExceptionMapper;
 import javax.ws.rs.ext.MessageBodyReader;
 import javax.ws.rs.ext.MessageBodyWriter;
@@ -178,7 +179,8 @@ public class RsProvider implements DistributionProvider {
     private boolean isProvider(Object intent) {
         return (intent instanceof ExceptionMapper) // 
             || (intent instanceof MessageBodyReader) //
-            || (intent instanceof MessageBodyWriter);
+            || (intent instanceof MessageBodyWriter) //
+            || (intent instanceof ContextResolver);
     }
 
     private boolean configTypeSupported(Map<String, Object> endpointProps, String configType)
{


Mime
View raw message