org.springframework.extensions.surf.render
Interface Processor

All Known Implementing Classes:
AbstractProcessor, EmptyRegionRenderer, FreemarkerProcessor, JSPProcessor, WebScriptProcessor

public interface Processor


Method Summary
 void execute(ProcessorContext processorContext, RenderFocus focus)
          Executes the given focus of the processor output using the given processor context
 void executeBody(ProcessorContext processorContext)
          Executes the "body" of the processor output using the given processor context.
 void executeFooter(ProcessorContext processorContext)
          Executes the "footer" of the processor output using the given processor context.
 void executeHeader(ProcessorContext processorContext)
          Executes the "header" of the processor output using the given processor context.
 boolean exists(ProcessorContext processorContext)
          Indicates whether the engine responsible for processing the body of the processor exists.
 void init(org.springframework.context.ApplicationContext applicationContext)
          Initialisation hook point.
 

Method Detail

init

void init(org.springframework.context.ApplicationContext applicationContext)
Initialisation hook point. This will be called exactly once when the processor is instantiated. It does not have access to request time information.

Parameters:
applicationContext - the application context

execute

void execute(ProcessorContext processorContext,
             RenderFocus focus)
             throws RendererExecutionException
Executes the given focus of the processor output using the given processor context

Parameters:
processorContext -
focus -
Throws:
RendererExecutionException

executeBody

void executeBody(ProcessorContext processorContext)
                 throws RendererExecutionException
Executes the "body" of the processor output using the given processor context.

Parameters:
processorContext - processorContext
Throws:
RendererExecutionException

executeHeader

void executeHeader(ProcessorContext processorContext)
                   throws RendererExecutionException
Executes the "header" of the processor output using the given processor context.

Parameters:
processorContext - processorContext
Throws:
RendererExecutionException

executeFooter

void executeFooter(ProcessorContext processorContext)
                   throws RendererExecutionException
Executes the "footer" of the processor output using the given processor context.

Parameters:
processorContext - processorContext
Throws:
RendererExecutionException

exists

boolean exists(ProcessorContext processorContext)
Indicates whether the engine responsible for processing the body of the processor exists.

Parameters:
processorContext -
Returns:


Copyright © 2009 SpringSource, Inc. All Rights Reserved.