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

java.lang.Object
  extended by org.springframework.extensions.surf.render.AbstractRenderer
      extended by org.springframework.extensions.surf.render.bean.RegionRenderer
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, Renderer
Direct Known Subclasses:
WebStudioRegionRenderer

public class RegionRenderer
extends AbstractRenderer

Bean responsible for rendering a region. The bean should set up render context state and then hand off to a region chrome renderer. If no chrome is present, then it call call through to the RenderUtil helper method directly.

Author:
muzquiano

Field Summary
 
Fields inherited from class org.springframework.extensions.surf.render.AbstractRenderer
applicationContext, logger, processor
 
Constructor Summary
RegionRenderer()
           
 
Method Summary
 void body(RenderContext parentContext)
          Executes the renderer in the "body" mode
 void header(RenderContext parentContext)
          Executes the renderer in the "head" mode
 void postProcess(RenderContext context)
          Post-processing of regions
 
Methods inherited from class org.springframework.extensions.surf.render.AbstractRenderer
all, footer, 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

RegionRenderer

public RegionRenderer()
Method Detail

header

public void header(RenderContext parentContext)
            throws RendererExecutionException
Description copied from interface: Renderer
Executes the renderer in the "head" mode

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

body

public void body(RenderContext parentContext)
          throws RendererExecutionException
Description copied from interface: Renderer
Executes the renderer in the "body" mode

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

postProcess

public void postProcess(RenderContext context)
                 throws IOException
Post-processing of regions

Throws:
IOException


Copyright © 2009 SpringSource, Inc. All Rights Reserved.