@groovy.transform.CompileStatic class DefaultRendererRegistry extends ClassAndMimeTypeRegistry<Renderer, RendererCacheKey> implements RendererRegistry
Default implementation of the RendererRegistry interface
Modifiers | Name | Description |
---|---|---|
class |
DefaultRendererRegistry.ContainerRendererCacheKey |
|
class |
DefaultRendererRegistry.RendererCacheKey |
Modifiers | Name | Description |
---|---|---|
private com.github.benmanes.caffeine.cache.Cache<ContainerRendererCacheKey, Renderer<?>> |
containerRendererCache |
|
private java.util.Map<ContainerRendererCacheKey, Renderer> |
containerRenderers |
|
private org.grails.web.gsp.io.GrailsConventionGroovyPageLocator |
groovyPageLocator |
|
private java.lang.String |
modelSuffix |
|
private ProxyHandler |
proxyHandler |
Type | Name and description |
---|---|
org.grails.web.gsp.io.GrailsConventionGroovyPageLocator |
groovyPageLocator |
java.lang.String |
modelSuffix |
ProxyHandler |
proxyHandler |
Constructor and description |
---|
DefaultRendererRegistry
() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addContainerRenderer(java.lang.Class objectType, Renderer renderer) |
|
void |
addDefaultRenderer(Renderer<java.lang.Object> renderer) |
<T> |
void |
addRenderer(Renderer<T> renderer) |
|
DefaultRendererRegistry.RendererCacheKey |
createCacheKey(java.lang.Class type, MimeType mimeType) |
<C, T> |
Renderer<C> |
findContainerRenderer(MimeType mimeType, java.lang.Class<C> containerType, T object) |
<T> |
Renderer<T> |
findRenderer(MimeType mimeType, T object) |
|
protected java.lang.Class<? extends java.lang.Object> |
getTargetClassForContainer(java.lang.Class containerClass, java.lang.Object object) |
|
void |
initialize() |
|
boolean |
isContainerType(java.lang.Class<?> aClass) |
|
void |
setRenderers(Renderer[] renderers) |
Groovy Documentation