Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In any Groovy class you can override invokeMethod which will essentially intercept all method calls (including to intercept calls to existing methods, the class additionally has to implement the GroovyInterceptable interface). This makes it possible to construct some quite interesting DSLs and builders.

...