diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-04 04:43:05 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-04 04:43:05 +0000 |
commit | b381d35a885ccb09bfdd77fd8c9806143db20afa (patch) | |
tree | c7ecc0133e8540f953488093f0fb30da88b2ab1f /sca-java-2.x/trunk/modules/sca-client-javascript/src/main/java | |
parent | 856f607ccf7b42eaf2e533001441ff0ad0f8bb16 (diff) |
Remove the dependency on obsolete binding-sca-axis2/binding-sca-rmi/sca-client-rmi modules
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@918851 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/sca-client-javascript/src/main/java')
-rw-r--r-- | sca-java-2.x/trunk/modules/sca-client-javascript/src/main/java/org/apache/tuscany/sca/client/javascript/ScriptEngine.java | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/sca-java-2.x/trunk/modules/sca-client-javascript/src/main/java/org/apache/tuscany/sca/client/javascript/ScriptEngine.java b/sca-java-2.x/trunk/modules/sca-client-javascript/src/main/java/org/apache/tuscany/sca/client/javascript/ScriptEngine.java index 41fb224cd3..151e2f2715 100644 --- a/sca-java-2.x/trunk/modules/sca-client-javascript/src/main/java/org/apache/tuscany/sca/client/javascript/ScriptEngine.java +++ b/sca-java-2.x/trunk/modules/sca-client-javascript/src/main/java/org/apache/tuscany/sca/client/javascript/ScriptEngine.java @@ -30,17 +30,9 @@ import java.lang.reflect.Method; import java.net.URI;
import java.net.URL;
import java.net.URLClassLoader;
-import java.util.List;
-import org.apache.tuscany.sca.assembly.AssemblyFactory;
-import org.apache.tuscany.sca.assembly.Endpoint;
-import org.apache.tuscany.sca.assembly.EndpointReference;
-import org.apache.tuscany.sca.client.rmi.SCAClientFactoryImpl;
-import org.apache.tuscany.sca.core.ExtensionPointRegistry;
-import org.apache.tuscany.sca.core.FactoryExtensionPoint;
-import org.apache.tuscany.sca.interfacedef.java.JavaInterface;
-import org.apache.tuscany.sca.runtime.EndpointRegistry;
import org.oasisopen.sca.NoSuchDomainException;
+import org.oasisopen.sca.client.SCAClientFactory;
import sun.org.mozilla.javascript.internal.Context;
import sun.org.mozilla.javascript.internal.Function;
@@ -83,7 +75,7 @@ public class ScriptEngine extends ScriptableObject implements Runnable{ /**
* instance of Tuscany runtime
*/
- private SCAClientFactoryImpl tuscany;
+ private SCAClientFactory tuscany;
/**
* A reference to the old class loader
@@ -498,7 +490,7 @@ public class ScriptEngine extends ScriptableObject implements Runnable{ // Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
try {
- tuscany = new SCAClientFactoryImpl(URI.create("tuscany:foo"));
+ tuscany = SCAClientFactory.newInstance(URI.create("tuscany:foo"));
} catch (NoSuchDomainException e) {
throw new RuntimeException(e);
}
|