From 4a473240fcfdecb8f7e0a03c3e252d87f1917632 Mon Sep 17 00:00:00 2001 From: rfeng Date: Thu, 29 Oct 2009 06:48:59 +0000 Subject: Refactor the TCCL processing to ClassLoaderContext Handle the OSGi service un-registration gracefully git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@830852 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tuscany/sca/binding/ws/axis2/Axis2ConfiguratorHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'java/sca/modules/binding-ws-axis2/src') diff --git a/java/sca/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ConfiguratorHelper.java b/java/sca/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ConfiguratorHelper.java index 782cfd6066..a7dc09ea6d 100644 --- a/java/sca/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ConfiguratorHelper.java +++ b/java/sca/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ConfiguratorHelper.java @@ -26,7 +26,7 @@ import java.security.PrivilegedExceptionAction; import org.apache.axis2.AxisFault; import org.apache.axis2.context.ConfigurationContext; import org.apache.axis2.deployment.URLBasedAxisConfigurator; -import org.apache.tuscany.sca.extensibility.ServiceDiscovery; +import org.apache.tuscany.sca.extensibility.ClassLoaderContext; import org.oasisopen.sca.ServiceRuntimeException; /** @@ -56,7 +56,7 @@ public class Axis2ConfiguratorHelper { // The axis2 class loader ClassLoader cl1 = URLBasedAxisConfigurator.class.getClassLoader(); - ClassLoader tccl = ServiceDiscovery.getInstance().setContextClassLoader(cl0, cl1); + ClassLoader tccl = ClassLoaderContext.setContextClassLoader(cl0, cl1); try { return new TuscanyAxisConfigurator(isRampartRequired).getConfigurationContext(); -- cgit v1.2.3