Class LayoutTemplateProcessorAdapterBean
java.lang.Object
com.foreach.across.modules.web.template.LayoutTemplateProcessorAdapterBean
- All Implemented Interfaces:
NamedWebTemplateProcessor
,WebTemplateProcessor
Applies a layout to a view, load resource packages and generate menu instances.
Will put the original view under the childPage attribute.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyTemplate
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler, org.springframework.web.servlet.ModelAndView modelAndView) Called after the handler is executed, before the view is rendered.protected void
buildMenus
(MenuFactory menuFactory) getName()
void
prepareForTemplate
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler) Called before the handler is executed.protected void
registerWebResources
(WebResourceRegistry registry)
-
Constructor Details
-
LayoutTemplateProcessorAdapterBean
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceNamedWebTemplateProcessor
- 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 interfaceWebTemplateProcessor
-
registerWebResources
-
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 interfaceWebTemplateProcessor
-