@groovy.transform.CompileStatic class ScaffoldingViewResolver extends GroovyPageViewResolver implements ModelBuilder, ResourceLoaderAware
Modifiers | Name | Description |
---|---|---|
protected boolean |
enableReload |
|
protected java.util.Map<java.lang.String, View> |
generatedViewCache |
Fields inherited from class | Fields |
---|---|
class GroovyPageViewResolver |
GSP_SUFFIX, JSP_SUFFIX, groovyPageLocator, templateEngine |
Type | Name and description |
---|---|
ResourceLoader |
resourceLoader |
java.lang.Class |
templateOverridePluginDescriptor |
Constructor and description |
---|
ScaffoldingViewResolver() |
ScaffoldingViewResolver(java.lang.Class templateOverridePluginDescriptor) This constructor allows a plugin to override the default templates provided by the Scaffolding plugin. |
Type Params | Return Type | Name and description |
---|---|---|
|
protected java.lang.String |
buildCacheKey(java.lang.String viewName) |
|
protected View |
loadView(java.lang.String viewName, java.util.Locale locale) |
|
void |
setEnableReload(boolean enableReload) |
Methods inherited from class | Name |
---|---|
class GroovyPageViewResolver |
call, clearCache, createFallbackView, createGrailsView, createJstlView, getCacheTimeout, isAllowGrailsViewCaching, loadView, resolveCurrentControllerKeyPrefixes, setAllowGrailsViewCaching, setCacheTimeout, setGroovyPageLocator, setResolveJspView, setTemplateEngine |
This constructor allows a plugin to override the default templates provided by the Scaffolding plugin. The plugin that contains the template override should be configured to load AFTER the scaffolding plugin. An example implementation follows:
def loadAfter = ['scaffolding']
...
@Override
Closure doWithSpring() { { ->
jspViewResolver(ScaffoldingViewResolver, this.class) { bean ->
bean.lazyInit = true
bean.parent = "abstractViewResolver"
}}
Groovy Documentation