Chapter 6. Bean Scripting Framework

In Chapter 2, “Appropriate Applications for Scripting Languages,” we discussed the importance of being able to embed scripting languages into your programming environment. In the chapters that followed, we described mechanisms built into the BeanShell, Jython, Rhino, and Groovy scripting languages that enable them to integrate with the Java platform. Although these mechanisms are a natural solution if you want to support only one of these scripting languages, things can get messy if you try to use more than one in your application. Some projects need a general scripting environment in which all languages are treated equally and can be used through the same API. That environment is the Bean Scripting Framework. ...

Get Scripting in Java™: Languages, Frameworks, and Patterns now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.