The Rhino JavaScript runtime is really clever at being able to call Java from JavaScript. It will automatically handle some type conversions and even allows for javascript functions to be passed to java code if the Java code expects an interface with a single method in it, the javascript function will be made to look like that function. We should see if we can find any documentation on this and add references to the generated .java file.1
The Rhino JavaScript runtime is really clever at being able to call Java from JavaScript. It will automatically handle some type conversions and even allows for javascript functions to be passed to java code if the Java code expects an interface with a single method in it, the javascript function will be made to look like that function. We should see if we can find any documentation on this and add references to the generated .java file.1