diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-27 08:28:11 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-27 08:28:11 +0000 |
commit | 25d03792990d853fcad19364f9c08718f968730f (patch) | |
tree | 862696dfc94c7a5016cf73c9ccb1b38b3b716f79 /branches/sca-java-1.x/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java | |
parent | 415755337408fb10d59fb972b13b101a46a71449 (diff) |
TUSCANY-2837 - Updates to start using Javascript extension points to generate js client proxies
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@759050 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/WidgetImplementationInvoker.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/branches/sca-java-1.x/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java b/branches/sca-java-1.x/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java index 3b8e92be5e..9d5fa7ae5b 100644 --- a/branches/sca-java-1.x/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java +++ b/branches/sca-java-1.x/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java @@ -25,6 +25,7 @@ import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; +import org.apache.tuscany.sca.core.web.JavascriptProxyFactoryExtensionPoint; import org.apache.tuscany.sca.invocation.Invoker; import org.apache.tuscany.sca.invocation.Message; import org.apache.tuscany.sca.runtime.RuntimeComponent; @@ -37,12 +38,14 @@ import org.apache.tuscany.sca.runtime.RuntimeComponent; */ class WidgetImplementationInvoker implements Invoker { private RuntimeComponent component; + private JavascriptProxyFactoryExtensionPoint javascriptProxyFactories; private String widgetName; private String widgetFolderURL; private String widgetLocationURL; - WidgetImplementationInvoker(RuntimeComponent component, String widgetName, String widgetFolderURL, String widgetLocationURL) { + WidgetImplementationInvoker(RuntimeComponent component, JavascriptProxyFactoryExtensionPoint javascriptProxyFactories, String widgetName, String widgetFolderURL, String widgetLocationURL) { this.component = component; + this.javascriptProxyFactories = javascriptProxyFactories; this.widgetName = widgetName + ".js"; this.widgetFolderURL = widgetFolderURL; this.widgetLocationURL = widgetLocationURL; @@ -64,7 +67,7 @@ class WidgetImplementationInvoker implements Invoker { } else if (id.equals(widgetName)) { // Generate JavaScript header for use in the Widget - InputStream is = WidgetComponentScriptGenerator.generateWidgetCode(component); + InputStream is = WidgetComponentScriptGenerator.generateWidgetCode(component, javascriptProxyFactories); msg.setBody(is); } else { |