From 3327f8ef00c3daadb9bee579e94dab08f392e304 Mon Sep 17 00:00:00 2001 From: lresende Date: Thu, 10 Dec 2009 06:15:07 +0000 Subject: Finishing up support for implementation widget by tyding up js generators to properly support dojo by default git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@889106 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/web/javascript/JavascriptProxyFactory.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sca-java-2.x/trunk/modules/web-javascript/src/main/java/org/apache') 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 -- cgit v1.2.3