interface RendererRegistry
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.) |
Adds a container renderer
objectType
- The object typerenderer
- The rendererAdds a default renderer, which are fall backs if the type is not known
renderer
- The renderer to addAdds a new renderer
renderer
- The renderer to addFinds a renderer for a container (List, Errors, Map etc.) for another object
contentType
- The content typecontainerType
- The container typeobject
- The object to render, an instance of the container (list, map etc.)Finds a renderer
contentType
- The content typeobject
- The objectWhether the specified class is a container (list, map etc.)
aClass
- The class