cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dand...@apache.org
Subject svn commit: r557804 - /incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
Date Thu, 19 Jul 2007 22:47:25 GMT
Author: dandiep
Date: Thu Jul 19 15:47:24 2007
New Revision: 557804

URL: http://svn.apache.org/viewvc?view=rev&rev=557804
Log:
Don't try to process bindings we don't understand

Modified:
    incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java

Modified: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java?view=diff&rev=557804&r1=557803&r2=557804
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
(original)
+++ incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
Thu Jul 19 15:47:24 2007
@@ -40,6 +40,8 @@
 import javax.xml.namespace.QName;
 import javax.xml.ws.Holder;
 
+import org.apache.cxf.BusException;
+import org.apache.cxf.binding.BindingFactoryManager;
 import org.apache.cxf.common.i18n.BundleUtils;
 import org.apache.cxf.common.i18n.Message;
 import org.apache.cxf.endpoint.Endpoint;
@@ -164,8 +166,17 @@
     protected void createEndpoints() {
         Service service = getService();
 
+        BindingFactoryManager bfm = getBus().getExtension(BindingFactoryManager.class);
+        
         for (ServiceInfo inf : service.getServiceInfos()) {
             for (EndpointInfo ei : inf.getEndpoints()) {
+                
+                try {
+                    bfm.getBindingFactory(ei.getBinding().getBindingId());
+                } catch (BusException e1) {
+                    continue;
+                }
+                
                 try {
                     Endpoint ep = createEndpoint(ei);
 



Mime
View raw message