org.springframework.extensions.surf.render.bean
Class PageRenderer

java.lang.Object
  extended by org.springframework.extensions.surf.render.AbstractRenderer
      extended by org.springframework.extensions.surf.render.bean.PageRenderer
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, Renderer

public class PageRenderer
extends AbstractRenderer

The primary duty of this bean is to determine the appropriate template to execute and the begin the processing of that template. It must base this decision off of the given context which will usually be the base render context that lightly wraps the request.

Author:
muzquiano

Field Summary
 
Fields inherited from class org.springframework.extensions.surf.render.AbstractRenderer
applicationContext, logger, processor
 
Constructor Summary
PageRenderer()
           
 
Method Summary
 void body(RenderContext parentContext)
          Renders the current page
 void footer(RenderContext context)
          Renders the footer for the page
 void header(RenderContext context)
          Renders the header for the page
 
Methods inherited from class org.springframework.extensions.surf.render.AbstractRenderer
all, getApplicationContext, getProcessor, getRenderService, getServiceRegistry, init, onApplicationEvent, print, print, render, setApplicationContext, setProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageRenderer

public PageRenderer()
Method Detail

body

public void body(RenderContext parentContext)
          throws RendererExecutionException
Renders the current page

Specified by:
body in interface Renderer
Specified by:
body in class AbstractRenderer
Throws:
RendererExecutionException

header

public void header(RenderContext context)
            throws RendererExecutionException
Renders the header for the page

Specified by:
header in interface Renderer
Overrides:
header in class AbstractRenderer
Throws:
RendererExecutionException

footer

public void footer(RenderContext context)
            throws RendererExecutionException
Renders the footer for the page

Specified by:
footer in interface Renderer
Overrides:
footer in class AbstractRenderer
Throws:
RendererExecutionException


Copyright © 2009 SpringSource, Inc. All Rights Reserved.