diff options
Diffstat (limited to '')
-rw-r--r-- | branches/sca-java-1.x/modules/core-web/src/main/java/org/apache/tuscany/sca/core/web/JavascriptProxyFactory.java | 16 |
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; } |