O'Reilly logo

Groovy for Domain-Specific Languages by Fergal Dearle

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. Integrating it all

In this final chapter, we are going to look at all of the different ways in which we can integrate Groovy with Java. All of our examples in the book to date have been written in pure Groovy. We now want to look at ways of leveraging Groovy within our existing Java applications.

One of the biggest advantages of Groovy for Java developers is its close relationship with the Java language itself. There are many ways in which we can exploit this relationship for our benefit. We will be looking at all of the following techniques:

  • We will explore how to integrate the languages at the class level in order to call Groovy code from Java and to call Java code from Groovy.

  • We will take a look at some of the dependency issues that ...

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