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

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

public class ComponentRenderer
extends AbstractRenderer

Bean responsible for rendering a component. This entails rendering Chrome and then placing the component inside of that chrome.

Author:
muzquiano

Field Summary
 
Fields inherited from class org.springframework.extensions.surf.render.AbstractRenderer
applicationContext, logger, processor
 
Constructor Summary
ComponentRenderer()
           
 
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 components
 
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

ComponentRenderer

public ComponentRenderer()
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 components

Throws:
IOException


Copyright © 2009 SpringSource, Inc. All Rights Reserved.