Re: __defineGetter__
"Hannes Wallnoefer" <[email protected]>
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
2007/3/30, Michael Platzer <[email protected]>: > > > Or would you consider this to be hackish programming practice? What > other usage scenarios come to your mind, when thinking of using > __defineGetter__? > I think I will use these to implement persistent HopObjects in Helma 2. This should allow me to use vanilla JavaScript objects, because I can use defineGetter/Setter to plug into the Helma persistence framework implemented in Java. One other very very interesting feature that has just been committed to Rhino CVS is __noSuchMethod__: https://bugzilla.mozilla.org/show_bug.cgi?id=368452 This allows you to implement a default handler when methods are invoked on an object that do not exist. I'll update Helma's rhino to include this today. hannes