summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-01-11 18:11:30 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-01-11 18:11:30 +0000
commit3cda0acb005d785b3946e9563c4f12515cab818f (patch)
tree89863b1af53d448c3986738e441b4b6f4a769b81 /sca-java-2.x/trunk
parent8cbb61c09951c6b89557fac739644e0618ee4ce7 (diff)
Use the servlethost helper to locate the servlet host
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@897980 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/modules/web-javascript-dojo/src/main/java/org/apache/tuscany/sca/web/javascript/dojo/DojoModuleActivator.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/sca-java-2.x/trunk/modules/web-javascript-dojo/src/main/java/org/apache/tuscany/sca/web/javascript/dojo/DojoModuleActivator.java b/sca-java-2.x/trunk/modules/web-javascript-dojo/src/main/java/org/apache/tuscany/sca/web/javascript/dojo/DojoModuleActivator.java
index ba4ddc4b2c..fa1a46b384 100644
--- a/sca-java-2.x/trunk/modules/web-javascript-dojo/src/main/java/org/apache/tuscany/sca/web/javascript/dojo/DojoModuleActivator.java
+++ b/sca-java-2.x/trunk/modules/web-javascript-dojo/src/main/java/org/apache/tuscany/sca/web/javascript/dojo/DojoModuleActivator.java
@@ -26,7 +26,7 @@ import javax.servlet.Servlet;
import org.apache.tuscany.sca.core.ExtensionPointRegistry;
import org.apache.tuscany.sca.core.ModuleActivator;
import org.apache.tuscany.sca.host.http.ServletHost;
-import org.apache.tuscany.sca.host.http.ServletHostExtensionPoint;
+import org.apache.tuscany.sca.host.http.ServletHostHelper;
public class DojoModuleActivator implements ModuleActivator {
private static final String dojoBaseUri = URI.create("/dojo").toString();
@@ -38,9 +38,7 @@ public class DojoModuleActivator implements ModuleActivator {
private ServletHost servletHost;
public DojoModuleActivator(ExtensionPointRegistry registry) {
- ServletHostExtensionPoint servletHosts = registry.getExtensionPoint(ServletHostExtensionPoint.class);
-
- this.servletHost = servletHosts.getServletHosts().get(0);
+ this.servletHost = ServletHostHelper.getServletHost(registry);
}
public void start() {