Helma Logo
main list history
previous version  overview  next version

Version 2 by hannes on 09. November 2005, 12:30

Possible strategies for HopObject declarations in Helma 2:

* Standard JS constructor, checks prototype to create instance of HopObject java class (we'll need to patch Rhino to do that, but this is actually a bug in Rhino IMO)IMO, i.e. JS objects should always use the same class as their prototypes anyway).
* Standard JS constructor, creates vanilla JS object, HopObject is vanilla JS object. Relational mapping is determined at script compile time, O/R layer uses standard Rhino API to inject/get inject/fetch relational data.
* Homegrown constructor installed at script compile time, creates instances of special Java HopObject class.

     removed
     added