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 ...