9.1 Traits Provided by Grails

Grails artefacts are automatically augmented with certain traits at compile time.

Domain Class Traits

Controller Traits

Interceptor Trait

Tag Library Trait

Below is a list of other traits provided by the framework. The javadocs provide more detail about methods and properties related to each trait.

TraitBrief Description
grails.web.api.WebAttributesCommon Web Attributes
grails.web.api.ServletAttributesServlet API Attributes
grails.web.databinding.DataBinderData Binding API
grails.artefact.controller.support.RequestForwarderRequest Forwarding API
grails.artefact.controller.support.ResponseRedirectorResponse Redirecting API
grails.artefact.controller.support.ResponseRendererResponse Rendering API
grails.validation.ValidateableValidation API