Skip to content
Permalink
Browse files
More work on removing the old MethodDispatcher
git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1555934 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
dkulp committed Jan 6, 2014
1 parent 90ab5af commit b34e1daed084078d5cd5964fbf4741a9f9bffb12
Showing 1 changed file with 0 additions and 20 deletions.
@@ -66,7 +66,6 @@
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 @@ protected void setServiceProperties() {
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);

0 comments on commit b34e1da

Please sign in to comment.