I have found a lot of examples and have successfully added functions to
the global scope.  What I need to find is an example of adding a
property to the global scope that will call into my Java class method
when it is accessed.  

 

I want this so my Java class can provide a bridge between two scripting
environments.  For instance, in script environment A there may be a
property defined call 'foo'.  From script environment B I want script
code to be able to access 'foo' like other.foo where 'other' is the
bridge property on the global scope that my Java class provides.

 

Thanks in advance.

Ed Silky

 

_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to