You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2014/01/06 18:33:18 UTC

svn commit: r1555934 - /cxf/trunk/rt/wsdl/src/main/java/org/apache/cxf/wsdl/service/factory/ReflectionServiceFactoryBean.java

Author: dkulp
Date: Mon Jan  6 17:33:18 2014
New Revision: 1555934

URL: http://svn.apache.org/r1555934
Log:
More work on removing the old MethodDispatcher

Modified:
    cxf/trunk/rt/wsdl/src/main/java/org/apache/cxf/wsdl/service/factory/ReflectionServiceFactoryBean.java

Modified: cxf/trunk/rt/wsdl/src/main/java/org/apache/cxf/wsdl/service/factory/ReflectionServiceFactoryBean.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/wsdl/src/main/java/org/apache/cxf/wsdl/service/factory/ReflectionServiceFactoryBean.java?rev=1555934&r1=1555933&r2=1555934&view=diff
==============================================================================
--- cxf/trunk/rt/wsdl/src/main/java/org/apache/cxf/wsdl/service/factory/ReflectionServiceFactoryBean.java (original)
+++ cxf/trunk/rt/wsdl/src/main/java/org/apache/cxf/wsdl/service/factory/ReflectionServiceFactoryBean.java Mon Jan  6 17:33:18 2014
@@ -66,7 +66,6 @@ import org.apache.cxf.catalog.CatalogXml
 import org.apache.cxf.common.classloader.ClassLoaderUtils;
 import org.apache.cxf.common.i18n.Message;
 import org.apache.cxf.common.logging.LogUtils;
-import org.apache.cxf.common.util.ReflectionInvokationHandler;
 import org.apache.cxf.common.util.StringUtils;
 import org.apache.cxf.common.util.SystemPropertyAction;
 import org.apache.cxf.common.xmlschema.SchemaCollection;
@@ -383,27 +382,8 @@ public class ReflectionServiceFactoryBea
         if (properties != null) {
             getService().putAll(properties);
         }
-        setOldMethodDispatcherProperty();
     }
     
-    @Deprecated
-    protected void setOldMethodDispatcherProperty() {
-        //Try adding the MethodDispatcher using the old interface
-        MethodDispatcher md = getMethodDispatcher();
-        if (getService().get("org.apache.cxf.frontend.MethodDispatcher") == null) {
-            try {
-                Class<?> cls = ClassLoaderUtils.loadClass("org.apache.cxf.frontend.MethodDispatcher",
-                                                          getClass());
-                Object o = Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(),
-                                                  new Class[] {cls},
-                                                  new ReflectionInvokationHandler(md));
-                getService().put("org.apache.cxf.frontend.MethodDispatcher", o);
-            } catch (Exception ex) {
-                //ignore
-            }
-        }
-    }
-
     protected void buildServiceFromWSDL(String url) {
         sendEvent(Event.CREATE_FROM_WSDL, url);