Helma 2 HopObject Implementation
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, 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/fetch relational data.
- Homegrown constructor installed at script compile time, creates instances of special Java HopObject class.