Package org.grails.web.sitemesh
Class GroovyPageLayoutFinder
java.lang.Object
org.grails.web.sitemesh.GroovyPageLayoutFinder
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>,org.springframework.core.Ordered
public class GroovyPageLayoutFinder
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.core.Ordered
Provides the logic for GrailsLayoutDecoratorMapper without so many ties to
the Sitemesh API.
- Since:
- 2.0
-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.opensymphony.module.sitemesh.DecoratorfindLayout(jakarta.servlet.http.HttpServletRequest request, com.opensymphony.module.sitemesh.Page page) com.opensymphony.module.sitemesh.DecoratorfindLayout(jakarta.servlet.http.HttpServletRequest request, com.opensymphony.sitemesh.Content page) protected com.opensymphony.module.sitemesh.DecoratorgetApplicationDefaultDecorator(jakarta.servlet.http.HttpServletRequest request) com.opensymphony.module.sitemesh.DecoratorgetNamedDecorator(jakarta.servlet.http.HttpServletRequest request, String name) com.opensymphony.module.sitemesh.DecoratorgetNamedDecorator(jakarta.servlet.http.HttpServletRequest request, String name, boolean viewMustExist) intgetOrder()voidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) voidsetCacheEnabled(boolean cacheEnabled) voidsetDefaultDecoratorName(String defaultDecoratorName) voidsetEnableNonGspViews(boolean enableNonGspViews) voidsetGspReloadEnabled(boolean gspReloadEnabled) voidsetViewResolver(org.springframework.web.servlet.ViewResolver viewResolver)
-
Field Details
-
LAYOUT_ATTRIBUTE
- See Also:
-
NONE_LAYOUT
- See Also:
-
RENDERING_VIEW_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
GroovyPageLayoutFinder
public GroovyPageLayoutFinder()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setDefaultDecoratorName
-
setEnableNonGspViews
public void setEnableNonGspViews(boolean enableNonGspViews) -
setGspReloadEnabled
public void setGspReloadEnabled(boolean gspReloadEnabled) -
setCacheEnabled
public void setCacheEnabled(boolean cacheEnabled) -
setViewResolver
public void setViewResolver(org.springframework.web.servlet.ViewResolver viewResolver) -
findLayout
public com.opensymphony.module.sitemesh.Decorator findLayout(jakarta.servlet.http.HttpServletRequest request, com.opensymphony.sitemesh.Content page) -
findLayout
public com.opensymphony.module.sitemesh.Decorator findLayout(jakarta.servlet.http.HttpServletRequest request, com.opensymphony.module.sitemesh.Page page) -
getApplicationDefaultDecorator
protected com.opensymphony.module.sitemesh.Decorator getApplicationDefaultDecorator(jakarta.servlet.http.HttpServletRequest request) -
getNamedDecorator
public com.opensymphony.module.sitemesh.Decorator getNamedDecorator(jakarta.servlet.http.HttpServletRequest request, String name) -
getNamedDecorator
public com.opensymphony.module.sitemesh.Decorator getNamedDecorator(jakarta.servlet.http.HttpServletRequest request, String name, boolean viewMustExist) -
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-