Recorded at SpringOne2GX 2014.

Speaker: Cédric Champeau

More Groovy Track

Slides: http://www.slideshare.net/SpringCentral/traits-design

Groovy 2.3 introduces the concept of traits in the language. Traits look like interfaces, but allow the developer to add both implementation and state into it. It introduces multiple inheritance in the language while avoiding the diamond problem. Traits will let you rethink the way you design APIs in Groovy, by favoriting composition of behaviors.