You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ba...@apache.org on 2007/08/22 20:21:05 UTC

svn commit: r568722 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java

Author: barrettj
Date: Wed Aug 22 11:21:05 2007
New Revision: 568722

URL: http://svn.apache.org/viewvc?rev=568722&view=rev
Log:
AXIS2-3129
Contributed by Dustin Amrhein.  Add support non-parameterized types on a JAXWS Provider implentation.

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java?rev=568722&r1=568721&r2=568722&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java Wed Aug 22 11:21:05 2007
@@ -352,9 +352,8 @@
             try {
                 paramType = (ParameterizedType)giType;
             } catch (ClassCastException e) {
-                //TODO NLS
-                throw new Exception(
-                        "Provider based SEI Class has to implement javax.xml.ws.Provider as javax.xml.ws.Provider<String>, javax.xml.ws.Provider<SOAPMessage>, javax.xml.ws.Provider<Source> or javax.xml.ws.Provider<JAXBContext>");
+                // this may not be a parameterized interface
+                continue;
             }
             Class interfaceName = (Class)paramType.getRawType();
 
@@ -365,7 +364,14 @@
                             "Provider cannot have more than one Generic Types defined as Per JAX-WS Specification");
                 }
                 providerType = (Class)paramType.getActualTypeArguments()[0];
+                break;
             }
+        }
+        if(providerType == null) {
+            throw new Exception("Provider based SEI Class has to implement javax.xml.ws." +
+                        "Provider as javax.xml.ws.Provider<String>, javax.xml.ws." +
+                        "Provider<SOAPMessage>, javax.xml.ws.Provider<Source> or " +
+                        "javax.xml.ws.Provider<JAXBContext>");
         }
         return providerType;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org