summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationProvider.java
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-04-03 08:22:24 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-04-03 08:22:24 +0000
commitc64843596c20e81802eef543fd2c51216d9c7d96 (patch)
treee3743d0c620310b1ad8c2f1b617cddd196362d33 /branches/sca-java-1.x/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationProvider.java
parente416b6615af1bc2b2e52dc34b7bda7421b054de2 (diff)
TUSCANY-2878 - Changes to support new JavaScript Generator extension point and new generators for tuscany specific scripts and dojo toolkit
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@761562 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--branches/sca-java-1.x/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationProvider.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/branches/sca-java-1.x/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationProvider.java b/branches/sca-java-1.x/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationProvider.java
index 8f1511f483..81341ac1d6 100644
--- a/branches/sca-java-1.x/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationProvider.java
+++ b/branches/sca-java-1.x/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationProvider.java
@@ -23,7 +23,7 @@ import java.net.URI;
import javax.servlet.Servlet;
import org.apache.tuscany.sca.assembly.ComponentService;
-import org.apache.tuscany.sca.core.web.JavascriptProxyFactoryExtensionPoint;
+import org.apache.tuscany.sca.core.web.ComponentJavaScriptGenerator;
import org.apache.tuscany.sca.host.http.ServletHost;
import org.apache.tuscany.sca.implementation.widget.WidgetImplementation;
import org.apache.tuscany.sca.interfacedef.Operation;
@@ -42,7 +42,7 @@ class WidgetImplementationProvider implements ImplementationProvider {
private RuntimeComponent component;
- private JavascriptProxyFactoryExtensionPoint javascriptProxyFactories;
+ private ComponentJavaScriptGenerator javaScriptGenerator;
private ServletHost servletHost;
private String widgetLocationURL;
@@ -56,11 +56,11 @@ class WidgetImplementationProvider implements ImplementationProvider {
*/
WidgetImplementationProvider(RuntimeComponent component,
WidgetImplementation implementation,
- JavascriptProxyFactoryExtensionPoint javascriptProxyFactories,
+ ComponentJavaScriptGenerator javaScriptGenerator,
ServletHost servletHost) {
this.component = component;
- this.javascriptProxyFactories = javascriptProxyFactories;
+ this.javaScriptGenerator = javaScriptGenerator;
this.servletHost = servletHost;
widgetLocationURL = implementation.getLocationURL().toString();
@@ -71,7 +71,7 @@ class WidgetImplementationProvider implements ImplementationProvider {
}
public Invoker createInvoker(RuntimeComponentService service, Operation operation) {
- WidgetImplementationInvoker invoker = new WidgetImplementationInvoker(component, javascriptProxyFactories, widgetName, widgetFolderURL, widgetLocationURL);
+ WidgetImplementationInvoker invoker = new WidgetImplementationInvoker(component, javaScriptGenerator, widgetName, widgetFolderURL, widgetLocationURL);
return invoker;
}
@@ -88,7 +88,7 @@ class WidgetImplementationProvider implements ImplementationProvider {
Servlet servlet = servletHost.getServletMapping(scriptURI);
if (servlet == null /*|| servlet instanceof HTTPGetListenerServlet*/) {
WidgetComponentScriptServlet widgetScriptServlet;
- widgetScriptServlet = new WidgetComponentScriptServlet(this.component, javascriptProxyFactories);
+ widgetScriptServlet = new WidgetComponentScriptServlet(this.component, javaScriptGenerator);
servletHost.addServletMapping(scriptURI, widgetScriptServlet);
} else {
System.out.println(">>>Servlet::" + servlet.getClass().toString());