O'Reilly logo

Scripting in Java™: Languages, Frameworks, and Patterns by Dejan Bosanac

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Scripting API

Back in Chapter 6, “Bean Scripting Framework,” I described the BSF library and explained the need for a general scripting framework like it. Although the BSF is a solid and stable project that serves its purpose well, the Java community needs a solution that better suits modern scripting languages and integrates more easily with native interpreters. In this chapter, I describe the Scripting API, a specification that arose from the Java Community Process (JCP) to create a standard Java scripting framework for the Java platform.

Here, we explore the motivation behind this API and its abstractions. We also walk through numerous examples that show us how to use these abstractions to solve everyday programming problems.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required