Groovy Metaprogramming

This deep-dive workshop explores Apache Groovy's powerful and flexible metaprogramming capabilities from beginner to advanced, with an emphasis on techniques of particular interest to Grails® developers.

Overview

The course covers, in-depth, how Apache 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.

PREREQUISITES

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

DURATION and Format

1 day (6 hours)

OUTLINE

The following topics are covered in this workshop:

  • Introduction to metaprogramming
  • Runtime metaprogramming vs. compile-time metaprogramming
  • ExpandoMetaClass
  • Runtime extension methods
  • AST transformations
  • AST macros
  • Traits
  • Enhancing Grails artefacts
  • Debugging

Professional Training for Modern Technology Teams

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