Groovy Metaprogramming

Join Paul King, OCI's Groovy Project Lead, as he discusses Groovy's powerful and flexible metaprogramming capabilities.

This Groovy deep dive covers beginner and advanced metaprogramming with an emphasis on techniques of particular interest to Grails developers.


The course covers, in-depth, how Groovy’s dynamic dispatch mechanism works and how application and plugin code can participate with that dispatch mechanism to provide more simple application code. You'll also learn techniques that may be applied at compile time to enhance classes, including AST Transformations, automatically enhancing Grails artifacts with traits and more.


  • Introduction to Metaprogramming
  • Runtime Metaprogramming vs. Compile-Time Metaprogramming
  • ExpandoMetaClass
  • Runtime Extension Methods
  • AST Transformations
  • AST Macros
  • Traits
  • Enhancing Grails Artefacts
  • Debugging

DURATION and Format

1 day (6 hours)

This course is delivered in-person by OCI Groovy Project Lead, Paul King, and can be conducted at your location or in our Midwest training lab (12140 Woodcrest Executive Drive; St. Louis, MO. 63141)


We recommend students be familiar with the Groovy programming language to get the most out of this course. In-depth knowledge of Groovy is not required.

Maximize your training experience by adding these courses to your curriculum.

Sign up today for open enrollment technology training.

Open Enrollment Courses

Open enrollment courses are a great, cost-effective option for organizations that have an immediate need to train a small number of employees.

View Course Schedule

Customized technology training designed to meet your team's specific needs

Customized Training Programs

Customized training programs can be delivered on-site, in our training lab, or online to help organizations enhance the skills of their internal development teams.

Request More Information