Hey all, I've been using Rhino for some time now in my application. I simply use POJO objects and let them get auto-wrapped by Rhino. I've been reading the docs about host objects and I seem a bit unclear what the purpose is. I don't see what the benefit of writing
public void jsFunction_resetCount() vs just public void resetCount(). Is it just the ability to add dynamic properties to an object? Ultimately I'm looking for a better solution to my application design. I've got a domain object, say MyEntity and a wrapper class called JsMyEntity that forwards methods to MyEntity delegate. This is so I can restrict access to various methods of the domain class and I have a "JS API" class that clearly defines what's exposed to JavaScript. I don't like writing the wrapper class. It's too much maintenance and prone to error. I'm looking for some feature of Rhino or JavaScript that might let me more easily define what methods of the domain class are accessible. I'm wondering if a host object has such features. Any input on how others are handling this type of thing would be appreciated. Thanks. -- Daryl Stultz _____________________________________ 6 Degrees Software and Consulting, Inc. http://www.6degrees.com mailto:[email protected] _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
