Chapter 16. Integrating Groovy

This chapter covers

  • Embedding Groovy in Java projects
  • Securing user-defined scripts
  • Customizing the runtime context

In the programming-language world, one rule of survival is simple: dance or die. It is not enough to make a beautiful language. You must also make it easy for programs written in your beautiful language to interact with programs written in other languages.

Simon Peyton Jones

One of the biggest advantages of Groovy (even one of the reasons for its inception) is that it integrates natively with Java because both languages run on the same platform and for the most part share the same commonly used data structures like lists and maps. It’s important to understand what makes Groovy such an attractive ...

Get Groovy in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.