Hello,

Does anyone have any experience combining OSGi with the "nashorn" scripting
engine?

The specific use-case I'm trying to figure out would use the Java.type()
then the Java.extend() syntax described here:
https://wiki.openjdk.java.net/display/Nashorn/Nashorn+extensions

...to define (on the JavaScript side) an implementation of an interface
loaded from a bundle, and not from the main application classloader.  There
doesn't seem to be any problem passing IN an instance of interfaces via a
Binding, it's defining the implementation and passing it OUT (or just using
it inside the script) that seems undocumented.  The ScriptEngine API
doesn't seem to provide a standard way to specify one or more classloaders.

Thanks,
Christopher

Reply via email to