Package: grails.rest.render

## [Groovy] Interface RendererRegistry

-     interface RendererRegistry

  Authors:
    Graeme Rocher
  Since:
    2.3

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `abstract void` | `addContainerRenderer(java.lang.Class objectType, Renderer renderer)` Adds a container renderer
    `` | `abstract void` | `addDefaultRenderer(Renderer<java.lang.Object> renderer)` Adds a default renderer, which are fall backs if the type is not known
    `<T>` | `abstract void` | `addRenderer(Renderer<T> renderer)` Adds a new renderer
    `<C, T>` | `abstract Renderer<C>` | `findContainerRenderer(MimeType contentType, java.lang.Class<C> containerType, T object)` Finds a renderer for a container (List, Errors, Map etc.) for another object
    `<T>` | `abstract Renderer<T>` | `findRenderer(MimeType contentType, T object)` Finds a renderer
    `` | `abstract boolean` | `isContainerType(java.lang.Class<?> aClass)` Whether the specified class is a container (list, map etc.)

- - ### Method Detail

    - #### abstract void addContainerRenderer(java.lang.Class objectType, Renderer renderer)

      Adds a container renderer

      Parameters:
        `objectType` - The object type
        `renderer` - The renderer

    - #### abstract void addDefaultRenderer(Renderer<java.lang.Object> renderer)

      Adds a default renderer, which are fall backs if the type is not known

      Parameters:
        `renderer` - The renderer to add

    - #### <T> abstract void addRenderer(Renderer<T> renderer)

      Adds a new renderer

      Parameters:
        `renderer` - The renderer to add

    - #### <C, T> abstract Renderer<C> findContainerRenderer(MimeType contentType, java.lang.Class<C> containerType, T object)

      Finds a renderer for a container (List, Errors, Map etc.) for another object

      Parameters:
        `contentType` - The content type
        `containerType` - The container type
        `object` - The object to render, an instance of the container (list, map etc.)
      Returns:
        A renderer or null if non exists

    - #### <T> abstract Renderer<T> findRenderer(MimeType contentType, T object)

      Finds a renderer

      Parameters:
        `contentType` - The content type
        `object` - The object
      Returns:
        The renderer

    - #### abstract boolean isContainerType(java.lang.Class<?> aClass)

      Whether the specified class is a container (list, map etc.)

      Parameters:
        `aClass` - The class
      Returns:
        True if it is