Hi again.
I'd like to be able to use ScriptableObject.defineClass() to allow
NativeJavaObjects to be created for my Java objects, but I want to
restrict which methods are actually exposed on the NativeJavaObject.
For example, let's say I have:
public interface D {
void f();
void f(int x);
}
public class C implements D {
public void f() { }
public void f(int x) { }
public void g() { }
}
I want to be able to say that instances of NativeJavaObject that wrap
instances of C should only reflect the methods declared on interface D
as properties on the JS object.
Is this possible to do (easily)?
Thanks,
Cameron
--
Cameron McCormack ≝ http://mcc.id.au/
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino