From 1e9f9b1ecf0c2ce9b5c9fc3da3846ff14b67b37d Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 11 Jan 2010 18:12:26 +0000 Subject: Use the servlethost helper to locate the servlet host git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@897982 13f79535-47bb-0310-9956-ffa450edef68 --- .../widget/provider/WidgetImplementationProviderFactory.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sca-java-2.x/trunk/modules/implementation-widget-runtime/src/main/java/org/apache') diff --git a/sca-java-2.x/trunk/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationProviderFactory.java b/sca-java-2.x/trunk/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationProviderFactory.java index aaf09f062d..dddc0a41ed 100644 --- a/sca-java-2.x/trunk/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationProviderFactory.java +++ b/sca-java-2.x/trunk/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationProviderFactory.java @@ -20,7 +20,7 @@ package org.apache.tuscany.sca.implementation.widget.provider; 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.widget.WidgetImplementation; import org.apache.tuscany.sca.provider.ImplementationProvider; import org.apache.tuscany.sca.provider.ImplementationProviderFactory; @@ -41,8 +41,7 @@ public class WidgetImplementationProviderFactory implements ImplementationProvid * Constructs a resource implementation. */ public WidgetImplementationProviderFactory(ExtensionPointRegistry extensionPoints) { - ServletHostExtensionPoint servletHosts = extensionPoints.getExtensionPoint(ServletHostExtensionPoint.class); - this.servletHost = servletHosts.getServletHosts().get(0); + this.servletHost = ServletHostHelper.getServletHost(extensionPoints); ComponentJavaScriptGeneratorExtensionPoint javascriptGeneratorExtensionPoint = extensionPoints.getExtensionPoint(ComponentJavaScriptGeneratorExtensionPoint.class); javaScriptGenerator = javascriptGeneratorExtensionPoint.getComponentJavaScriptGenerators().get(0); -- cgit v1.2.3