Grails 3.x Inside and Out
summary
Grails 3.x composes behavior with Traits compiled into classes and an AST transform that generates Grails factories to inject traits into artifacts. Demo builds a mail‑sender plugin via Gradle multi‑project, adds a trait that enhances all controllers, wires a default bean with doWithSpring, and has unit tests that pass for the trait behavior. Events use Reactor events (thread‑pool async notify/on API) so sending becomes nonblocking. Codegen uses Groovy script commands and application commands expose runnable tasks in the interactive shell.
AI-written summary · about
chapters (21)
- 0:00Introduction
- 1:55What are Traits
- 5:25Traits
- 6:08Mail Sender
- 8:30Test Sender
- 11:22Test Controller
- 15:13Default Mail System
- 17:15Default Reply
- 19:40Core Traits
- 23:34Events
- 32:34Event Driven
- 34:44Configuration
- 39:59Configuration API
- 41:14plication
- 41:36Code Generation
- 47:19Code Generation Summary
- 49:07Model
- 49:51Application Commands
- 58:22HandleBatch
- 59:13Gradle
- 59:36Summary








