cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r789420 - /cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JAXWSProviderMethodDispatcher.java
Date Mon, 29 Jun 2009 19:44:04 GMT
Author: dkulp
Date: Mon Jun 29 19:44:04 2009
New Revision: 789420

URL: http://svn.apache.org/viewvc?rev=789420&view=rev
Log:
Use the Provider interface invoke method instead of the instance class
specific version since the instance itself could end up being a proxy.

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JAXWSProviderMethodDispatcher.java

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JAXWSProviderMethodDispatcher.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JAXWSProviderMethodDispatcher.java?rev=789420&r1=789419&r2=789420&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JAXWSProviderMethodDispatcher.java
(original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JAXWSProviderMethodDispatcher.java
Mon Jun 29 19:44:04 2009
@@ -20,8 +20,8 @@
 package org.apache.cxf.jaxws;
 
 import java.lang.reflect.Method;
-import java.lang.reflect.ParameterizedType;
-import java.lang.reflect.Type;
+
+import javax.xml.ws.Provider;
 
 import org.apache.cxf.endpoint.Endpoint;
 import org.apache.cxf.frontend.MethodDispatcher;
@@ -35,18 +35,14 @@
     Method invoke;
     
     public JAXWSProviderMethodDispatcher(JaxWsImplementorInfo implInfo) {
-        Type[] genericInterfaces = implInfo.getImplementorClass().getGenericInterfaces();
-        ParameterizedType pt = (ParameterizedType)genericInterfaces[0];
-        Class c = (Class)pt.getActualTypeArguments()[0];
         try {
-            invoke = implInfo.getImplementorClass().getMethod("invoke", c);
+            invoke = Provider.class.getMethod("invoke", new Class[] {Object.class});
         } catch (Exception e) {
             throw new ServiceConstructionException(e);
         }
     }
 
     public BindingOperationInfo getBindingOperation(Method m, Endpoint endpoint) {
-        // TODO Auto-generated method stub
         return null;
     }
 
@@ -55,7 +51,6 @@
     }
 
     public void bind(OperationInfo o, Method... methods) {
-        // TODO Auto-generated method stub
     }
 
     



Mime
View raw message