This article is taken from the book Griffon in Action. The authors discuss creating a plugin/addon as an event handler. They use an AOP-like approach to intercept controller actions and model properties, which allows the programmer to find out when and how the data has changed.

Creating a simple tracer plugin/addon (PDF)