Java Reference
In-Depth Information
3.3. Summary
This chapter is about basic Groovy / Java integration, regardless of use case. After review-
ing all the different ways to call Groovy from Java, from the JSR-223 Script-Engine
to the GroovyShell and Eval classes in Groovy, I switched to the easy way, which is
to put Groovy in a class and use it like any other library class. This easy blend of Java and
Groovy will be used from now on.
Next I reviewed many ways that Groovy can help Java at the basic level, from POJO en-
hancements to AST transformations to building XML and more. I'll use these techniques
in future chapters wherever they can help. I'll also review other helpful techniques along
the way, though these are most of the major ones.
Search WWH ::




Custom Search