...

/

Command Chains and Modules

Command Chains and Modules

Learn about command chains and modules used in Groovy.

We'll cover the following...

Command chains

Groovy 1.8 added command chains, which allow for a completely fluent DSL for an even number of words.

For example, pull request on github will be executed as pull(request).on(github). Groovy 1.8 also added the following:

  • Closure annotation parameters: @Invariant({number >= 0})
  • Closure memoization: {...}.memoize()
  • Built-in JSON support - Consuming, producing, and
...