You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by as...@apache.org on 2016/02/01 23:54:48 UTC

[1/2] cxf git commit: Allow overriding methodToInvoke selection in JAXRSInvoker

Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes ad577419d -> f183b9f00


Allow overriding methodToInvoke selection in JAXRSInvoker


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

Branch: refs/heads/3.1.x-fixes
Commit: 1f44b234594e60f9604959cd2859f3970d3d4360
Parents: ad57741
Author: Alessio Soldano <as...@redhat.com>
Authored: Mon Feb 1 23:33:05 2016 +0100
Committer: Alessio Soldano <as...@redhat.com>
Committed: Mon Feb 1 23:47:25 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/cxf/jaxrs/JAXRSInvoker.java | 29 ++++++++++++--------
 1 file changed, 17 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/1f44b234/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/JAXRSInvoker.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/JAXRSInvoker.java b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/JAXRSInvoker.java
index ad2c627..ac445d9 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/JAXRSInvoker.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/JAXRSInvoker.java
@@ -166,18 +166,7 @@ public class JAXRSInvoker extends AbstractInvoker {
         }
         
         
-        Method resourceMethod = cri.getMethodDispatcher().getMethod(ori);
-        
-        Method methodToInvoke = null;
-        if (Proxy.class.isInstance(resourceObject)) {
-            methodToInvoke = cri.getMethodDispatcher().getProxyMethod(resourceMethod);
-            if (methodToInvoke == null) {
-                methodToInvoke = InjectionUtils.checkProxy(resourceMethod, resourceObject);
-                cri.getMethodDispatcher().addProxyMethod(resourceMethod, methodToInvoke);
-            }
-        } else {
-            methodToInvoke = resourceMethod;
-        }
+        Method methodToInvoke = getMethodToInvoke(cri, ori, resourceObject);
         
         List<Object> params = null;
         if (request instanceof List) {
@@ -290,6 +279,22 @@ public class JAXRSInvoker extends AbstractInvoker {
         setResponseContentTypeIfNeeded(inMessage, result);
         return result;
     }
+
+    protected Method getMethodToInvoke(ClassResourceInfo cri, OperationResourceInfo ori, Object resourceObject) {
+        Method resourceMethod = cri.getMethodDispatcher().getMethod(ori);
+        
+        Method methodToInvoke = null;
+        if (Proxy.class.isInstance(resourceObject)) {
+            methodToInvoke = cri.getMethodDispatcher().getProxyMethod(resourceMethod);
+            if (methodToInvoke == null) {
+                methodToInvoke = InjectionUtils.checkProxy(resourceMethod, resourceObject);
+                cri.getMethodDispatcher().addProxyMethod(resourceMethod, methodToInvoke);
+            }
+        } else {
+            methodToInvoke = resourceMethod;
+        }
+        return methodToInvoke;
+    }
     
     private MessageContentsList checkExchangeForResponse(Exchange exchange) {
         Response r = exchange.get(Response.class);


[2/2] cxf git commit: Recording .gitmergeinfo Changes

Posted by as...@apache.org.
Recording .gitmergeinfo Changes


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

Branch: refs/heads/3.1.x-fixes
Commit: f183b9f00a596ff645b30fdc0e4954f0bf26c80f
Parents: 1f44b23
Author: Alessio Soldano <as...@redhat.com>
Authored: Mon Feb 1 23:48:25 2016 +0100
Committer: Alessio Soldano <as...@redhat.com>
Committed: Mon Feb 1 23:48:25 2016 +0100

----------------------------------------------------------------------
 .gitmergeinfo | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/f183b9f0/.gitmergeinfo
----------------------------------------------------------------------
diff --git a/.gitmergeinfo b/.gitmergeinfo
index f781818..3691749 100644
--- a/.gitmergeinfo
+++ b/.gitmergeinfo
@@ -25,4 +25,5 @@ M 8583a24ac541dc373503d7a6c59cd90890acdae3
 M 8e650cfe3efd63a06c25b7e912d9d4db61598eb1
 M 9a9e0a8a37608195c4ef6fbf386728d13d025d2d
 M a1710bdd783afcd667d9e72ccb031480d3806850
+M abcc137cb9b27e0da0b4270a18ac2a32df1e9990
 M fe89bf0fb8379428667f66312e6942e906142d6f