diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-11 18:06:41 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-11 18:06:41 +0000 |
commit | cc609c405281d171cc71a5494219c25e3655c241 (patch) | |
tree | 2bb18adfce2b0ded408daf98201bb62b1176452f /sca-java-2.x/trunk/modules/implementation-web-client/src/main/java/org | |
parent | b8b8ae67170f64282a26f537410b3a3e6fdf5cc5 (diff) |
Use the servlethost helper to locate the servlet host
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@897976 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/implementation-web-client/src/main/java/org')
-rw-r--r-- | sca-java-2.x/trunk/modules/implementation-web-client/src/main/java/org/apache/tuscany/sca/implementation/web/client/JSClientExtensionPointImpl.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sca-java-2.x/trunk/modules/implementation-web-client/src/main/java/org/apache/tuscany/sca/implementation/web/client/JSClientExtensionPointImpl.java b/sca-java-2.x/trunk/modules/implementation-web-client/src/main/java/org/apache/tuscany/sca/implementation/web/client/JSClientExtensionPointImpl.java index bb5e68b950..e57d751048 100644 --- a/sca-java-2.x/trunk/modules/implementation-web-client/src/main/java/org/apache/tuscany/sca/implementation/web/client/JSClientExtensionPointImpl.java +++ b/sca-java-2.x/trunk/modules/implementation-web-client/src/main/java/org/apache/tuscany/sca/implementation/web/client/JSClientExtensionPointImpl.java @@ -19,12 +19,10 @@ package org.apache.tuscany.sca.implementation.web.client;
-import java.util.List;
-
import org.apache.tuscany.sca.assembly.ComponentReference;
import org.apache.tuscany.sca.core.ExtensionPointRegistry;
import org.apache.tuscany.sca.host.http.ServletHost;
-import org.apache.tuscany.sca.host.http.ServletHostExtensionPoint;
+import org.apache.tuscany.sca.host.http.ServletHostHelper;
import org.apache.tuscany.sca.implementation.web.WebImplementation;
import org.apache.tuscany.sca.implementation.web.runtime.ClientExtensionPoint;
import org.apache.tuscany.sca.interfacedef.Operation;
@@ -38,11 +36,7 @@ public class JSClientExtensionPointImpl implements ClientExtensionPoint { private ServletHost servletHost;
public JSClientExtensionPointImpl(ExtensionPointRegistry extensionPoints) {
- ServletHostExtensionPoint servletHosts = extensionPoints.getExtensionPoint(ServletHostExtensionPoint.class);
- List<ServletHost> hosts = servletHosts.getServletHosts();
- if (!hosts.isEmpty()) {
- this.servletHost = hosts.get(0);
- }
+ this.servletHost = ServletHostHelper.getServletHost(extensionPoints);
}
public ImplementationProvider createImplementationProvider(RuntimeComponent component, WebImplementation implementation) {
|