public class SitemeshLayoutViewResolver extends GrailsLayoutViewResolver implements org.codehaus.groovy.grails.plugins.support.aware.GrailsApplicationAware, org.springframework.beans.factory.DisposableBean, org.springframework.core.Ordered, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
| Modifier and Type | Field and Description |
|---|---|
protected org.codehaus.groovy.grails.commons.GrailsApplication |
grailsApplication |
groovyPageLayoutFinder, innerViewResolver, servletContext| Constructor and Description |
|---|
SitemeshLayoutViewResolver() |
SitemeshLayoutViewResolver(org.springframework.web.servlet.ViewResolver innerViewResolver,
org.codehaus.groovy.grails.web.sitemesh.GroovyPageLayoutFinder groovyPageLayoutFinder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearSitemeshConfig() |
protected org.springframework.web.servlet.View |
createLayoutView(org.springframework.web.servlet.View innerView) |
void |
destroy() |
int |
getOrder() |
void |
init() |
protected com.opensymphony.module.sitemesh.Factory |
loadSitemeshConfig() |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
void |
setGrailsApplication(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication) |
void |
setOrder(int order) |
getInnerViewResolver, resolveViewName, setApplicationContext, setGroovyPageLayoutFinder, setInnerViewResolver, setServletContextprotected org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication
public SitemeshLayoutViewResolver()
public SitemeshLayoutViewResolver(org.springframework.web.servlet.ViewResolver innerViewResolver,
org.codehaus.groovy.grails.web.sitemesh.GroovyPageLayoutFinder groovyPageLayoutFinder)
protected org.springframework.web.servlet.View createLayoutView(org.springframework.web.servlet.View innerView)
createLayoutView in class GrailsLayoutViewResolverpublic void init()
protected com.opensymphony.module.sitemesh.Factory loadSitemeshConfig()
public void setGrailsApplication(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication)
setGrailsApplication in interface org.codehaus.groovy.grails.plugins.support.aware.GrailsApplicationAwarepublic void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.Exceptionprotected void clearSitemeshConfig()
public int getOrder()
getOrder in interface org.springframework.core.OrderedgetOrder in class GrailsLayoutViewResolverpublic void setOrder(int order)
setOrder in class GrailsLayoutViewResolverpublic void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>