diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-12-10 06:15:07 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-12-10 06:15:07 +0000 |
commit | 3327f8ef00c3daadb9bee579e94dab08f392e304 (patch) | |
tree | f766513df8b063118d3670a3c718ba4b804d47c9 /sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org | |
parent | 67e0b53ca7d3b1c83e0ee0e3b9321bd84137d5c4 (diff) |
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
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java b/sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java index b67500152e..abc3c0c342 100644 --- a/sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java +++ b/sca-java-2.x/trunk/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java @@ -52,6 +52,10 @@ public class AtomBindingJavascriptProxyFactoryImpl implements JavascriptProxyFac return null; } + public String createJavascriptHeader(ComponentReference componentReference) throws IOException { + return "dojo.require('tuscany.AtomService');"; + } + public String createJavascriptReference(ComponentReference componentReference) throws IOException { EndpointReference epr = componentReference.getEndpointReferences().get(0); Endpoint targetEndpoint = epr.getTargetEndpoint(); |