Option 2:
- You don't want to write an SCDL componentType file
- In your JavaScript object constructor you do the following:
function Calculator() {
scaproperty(this.precision)
scareference(this.divideService)
}
- This tells the Tuscany runtime what properties and references to
consider, the r
ant elder wrote:
Supporting OO JavaScript sounds like a good idea to me, and I think I
also
prefer the attribute named 'constructor'. Have you thought about how
properties and references will work with OO? Right now in the Java impl I
set these in the script global scope, with OO I guess they sh
Supporting OO JavaScript sounds like a good idea to me, and I think I also
prefer the attribute named 'constructor'. Have you thought about how
properties and references will work with OO? Right now in the Java impl I
set these in the script global scope, with OO I guess they should be set on
the
ant elder wrote:
How about a C++ JavaScript extension to match the one we have in
Java/SCA?
You can use SpiderMonkey [1] which also has E4X support and then we'd be
able to switch SCA JavaScript components btw the Java and C++ runtimes.
Using E4X would mean you don't have the databinding issues
That's a great idea Pete. I would also like to add that we are just starting
to think about SCA in PHP and is would seem sensible to reuse the work you
have done in C++. So if we could also engineer the C++ implementation so
that it is easy to concume as the basis for another implementation, as we
That sounds like an ineresting idea. I'll look into it.
Now that the release is out of the way I want to open up discussion on here
about restructuring the C++ runtime to enable it to support multiple
language bindings (C++, PHP,...) and also to support the latest Assembly
Specification for the r
How about a C++ JavaScript extension to match the one we have in Java/SCA?
You can use SpiderMonkey [1] which also has E4X support and then we'd be
able to switch SCA JavaScript components btw the Java and C++ runtimes.
Using E4X would mean you don't have the databinding issues when using web
serv
Hi,
I've been loosely thinking about what it will take to provide extra language
bindings to Tuscany SCA C++ and how that relates to providing the runtime as
an extension within a language. I've put my early thoughts up on the wiki
here:
http://wiki.apache.org/ws/Tuscany/TuscanyCpp/LanguageBindin