Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
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: