Renderer (Grails 4.0.11)
Date: 2021-06-24

Package: grails.rest.render

## [Groovy] Interface Renderer<T>

- grails.web.mime.MimeTypeProvider

- All Superinterfaces:
    MimeTypeProvider

  Interface for class that render RESTful responses to implement

  Authors:
    Graeme Rocher
  Since:
    2.3

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `java.lang.Class<T>` | `getTargetType()` @return The target type
    `` | `void` | `render(T object, RenderContext context)` Renders the object

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `interface MimeTypeProvider` | `getMimeTypes`

- - ### Method Detail

    - #### java.lang.Class<T> getTargetType()

      Returns:
        The target type

    - #### void render(T object, RenderContext context)

      Renders the object

      Parameters:
        `object` - The object to render
        `context` - The RenderContext
      Returns:
        Optional return value, those to that directly write typically return null