summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/JavascriptProxyFactory.java
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-03-27 08:41:59 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-03-27 08:41:59 +0000
commit1fdbfebde1bc14a4dcf93eb54083947a53615a45 (patch)
tree56046648539e0b9127db46bacbd9c0b6ece78704 /branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/JavascriptProxyFactory.java
parentb61f7f0649bf7527c1a1691b71b0d61b17f8535c (diff)
TUSCANY-2837 - Extending Javascript extension to provide the js proxy client file
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@759058 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/JavascriptProxyFactory.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/JavascriptProxyFactory.java b/branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/JavascriptProxyFactory.java
index b6a0662a47..daac7925bd 100644
--- a/branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/JavascriptProxyFactory.java
+++ b/branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/JavascriptProxyFactory.java
@@ -20,6 +20,7 @@
package org.apache.tuscany.sca.core.web;
import java.io.IOException;
+import java.io.InputStream;
import javax.xml.namespace.QName;
@@ -46,10 +47,23 @@ public interface JavascriptProxyFactory {
QName getQName();
/**
+ * Get the Javascript proxy client file name
+ * @return the javascript file name
+ */
+ String getJavascriptProxyFile();
+
+ /**
+ * Get the Javascript proxy client contents as a stream
+ * @return
+ */
+ InputStream getJavascriptProxyFileAsStream() throws IOException;
+
+
+ /**
* Create a JavaScript Proxy for a given reference
* @param componentReference The reference
* @return the javascript proxy code
* @throws IOException
*/
- String scriptReference(ComponentReference componentReference) throws IOException;
+ String createJavascriptReference(ComponentReference componentReference) throws IOException;
}