cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r946236 - /cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spi/ProviderImpl.java
Date Wed, 19 May 2010 15:47:44 GMT
Author: dkulp
Date: Wed May 19 15:47:44 2010
New Revision: 946236

URL: http://svn.apache.org/viewvc?rev=946236&view=rev
Log:
We only understand the "standard" features.

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

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spi/ProviderImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spi/ProviderImpl.java?rev=946236&r1=946235&r2=946236&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spi/ProviderImpl.java (original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spi/ProviderImpl.java Wed
May 19 15:47:44 2010
@@ -68,6 +68,11 @@ public class ProviderImpl extends javax.
                                                  Class serviceClass,
                                                  WebServiceFeature ... features) {
         Bus bus = BusFactory.getThreadDefaultBus();
+        for (WebServiceFeature f : features) {
+            if (!f.getClass().getName().startsWith("javax.xml.ws")) {
+                throw new WebServiceException("Unknown feature error: " + f.getClass().getName());
+            }
+        }
         return new ServiceImpl(bus, wsdlDocumentLocation,
                                serviceName, serviceClass, features);
         



Mime
View raw message