Skip to main content

Beyond JSR-223: Scripts in Mainstream Programming

Posted by sanjay_dasgupta on March 14, 2012 at 3:25 AM PDT


The complete segregation of a script's variables from those in the lexical scope of the embedding Java program greatly hinders the use of scripting languages in large-scale applications. This article describes the use and development of "InScript" -- a tool that enables embedded scripts in any JSR-223 language to read and write Java variables naturally, without requiring manually programmed "put()"s and "get()"s to move values to and from the script engine. The freedom to use Java variables in scripts makes it easy to customize programs, or even implement large portions of programs, with scripts.

InScript-Article-21.zip446.39 KB
Resources-InScript.zip298.87 KB