binduwavell / generator-alfresco

A Yeomen generator based on the Alfresco all-in-one Maven archetype with some generators and an opinionated project structure.
https://github.com/binduwavell/generator-alfresco#readme
Apache License 2.0
29 stars 15 forks source link

Add references to jsrootobject sub-generator to how rhino will handle interop #192

Open binduwavell opened 6 years ago

binduwavell commented 6 years ago

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

binduwavell commented 6 years ago

https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino/Scripting_Java