Class GroovyPageLayoutFinder

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.core.Ordered

    public class GroovyPageLayoutFinder
    extends java.lang.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

      Fields 
      Modifier and Type Field Description
      static java.lang.String LAYOUT_ATTRIBUTE  
      static java.lang.String NONE_LAYOUT  
      static java.lang.String RENDERING_VIEW_ATTRIBUTE  
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.opensymphony.module.sitemesh.Decorator findLayout​(javax.servlet.http.HttpServletRequest request, com.opensymphony.module.sitemesh.Page page)  
      com.opensymphony.module.sitemesh.Decorator findLayout​(javax.servlet.http.HttpServletRequest request, com.opensymphony.sitemesh.Content page)  
      protected com.opensymphony.module.sitemesh.Decorator getApplicationDefaultDecorator​(javax.servlet.http.HttpServletRequest request)  
      com.opensymphony.module.sitemesh.Decorator getNamedDecorator​(javax.servlet.http.HttpServletRequest request, java.lang.String name)  
      com.opensymphony.module.sitemesh.Decorator getNamedDecorator​(javax.servlet.http.HttpServletRequest request, java.lang.String name, boolean viewMustExist)  
      int getOrder()  
      void onApplicationEvent​(org.springframework.context.event.ContextRefreshedEvent event)  
      void setCacheEnabled​(boolean cacheEnabled)  
      void setDefaultDecoratorName​(java.lang.String defaultDecoratorName)  
      void setEnableNonGspViews​(boolean enableNonGspViews)  
      void setGspReloadEnabled​(boolean gspReloadEnabled)  
      void setViewResolver​(org.springframework.web.servlet.ViewResolver viewResolver)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GroovyPageLayoutFinder

        public GroovyPageLayoutFinder()
    • Method Detail

      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
      • setDefaultDecoratorName

        public void setDefaultDecoratorName​(java.lang.String defaultDecoratorName)
      • 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​(javax.servlet.http.HttpServletRequest request,
                                                                     com.opensymphony.sitemesh.Content page)
      • findLayout

        public com.opensymphony.module.sitemesh.Decorator findLayout​(javax.servlet.http.HttpServletRequest request,
                                                                     com.opensymphony.module.sitemesh.Page page)
      • getApplicationDefaultDecorator

        protected com.opensymphony.module.sitemesh.Decorator getApplicationDefaultDecorator​(javax.servlet.http.HttpServletRequest request)
      • getNamedDecorator

        public com.opensymphony.module.sitemesh.Decorator getNamedDecorator​(javax.servlet.http.HttpServletRequest request,
                                                                            java.lang.String name)
      • getNamedDecorator

        public com.opensymphony.module.sitemesh.Decorator getNamedDecorator​(javax.servlet.http.HttpServletRequest request,
                                                                            java.lang.String name,
                                                                            boolean viewMustExist)
      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.event.ContextRefreshedEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>