Class LayoutTemplateProcessorAdapterBean

java.lang.Object
com.foreach.across.modules.web.template.LayoutTemplateProcessorAdapterBean
All Implemented Interfaces:
NamedWebTemplateProcessor, WebTemplateProcessor

public class LayoutTemplateProcessorAdapterBean extends Object implements NamedWebTemplateProcessor
Applies a layout to a view, load resource packages and generate menu instances. Will put the original view under the childPage attribute.
  • Constructor Details

    • LayoutTemplateProcessorAdapterBean

      public LayoutTemplateProcessorAdapterBean(String name, String layout)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface NamedWebTemplateProcessor
      Returns:
      The name under which the processor should be registered.
    • prepareForTemplate

      public void prepareForTemplate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler)
      Description copied from interface: WebTemplateProcessor
      Called before the handler is executed.
      Specified by:
      prepareForTemplate in interface WebTemplateProcessor
    • registerWebResources

      protected void registerWebResources(WebResourceRegistry registry)
    • buildMenus

      protected void buildMenus(MenuFactory menuFactory)
    • applyTemplate

      public void applyTemplate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler, org.springframework.web.servlet.ModelAndView modelAndView)
      Description copied from interface: WebTemplateProcessor
      Called after the handler is executed, before the view is rendered.
      Specified by:
      applyTemplate in interface WebTemplateProcessor