summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/web-javascript/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/trunk/modules/web-javascript/src/main')
-rw-r--r--sca-java-2.x/trunk/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/JavascriptProxyFactory.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/JavascriptProxyFactory.java b/sca-java-2.x/trunk/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/JavascriptProxyFactory.java
index 10455ef764..825d3281e4 100644
--- a/sca-java-2.x/trunk/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/JavascriptProxyFactory.java
+++ b/sca-java-2.x/trunk/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/JavascriptProxyFactory.java
@@ -58,6 +58,15 @@ public interface JavascriptProxyFactory {
*/
InputStream getJavascriptProxyFileAsStream() throws IOException;
+ /**
+ * Create any necessary JavaScript imports/headers necessary for the extension to work
+ * This is useful in case of Dojo that need to generate the requires statements to load the dependencies
+ *
+ * @param componentReference
+ * @return
+ * @throws IOException
+ */
+ String createJavascriptHeader(ComponentReference componentReference) throws IOException;
/**
* Create a JavaScript Proxy for a given reference