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 runtime initializes them on return from the constructor.
Couldn't the same thing be done by declaring properties/references as
constructor parameters, which would be consistent with SCA assembly's
use of dependency injection? I think it would also be interesting to
support metadata annotations through JavaScript comments (similar to
XDoclet) by writing a script parser using regex (or something
similar) as in:
http://dotnetjunkies.com/WebLog/anoras/archive/2004/08/09/21502.aspx
Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]