|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.surf.render.AbstractProcessor org.springframework.extensions.webscripts.FreemarkerProcessor
public class FreemarkerProcessor
Implementation of a renderer that executes a Freemarker template.
Field Summary | |
---|---|
static String |
PREFIX_CLASSPATH
|
Constructor Summary | |
---|---|
FreemarkerProcessor()
|
Method Summary | |
---|---|
void |
executeBody(ProcessorContext pc)
Execute. |
void |
executeHeader(ProcessorContext pc)
Executes the "header" of the processor output using the given processor context. |
boolean |
exists(ProcessorContext pc)
Indicates whether the engine responsible for processing the body of the processor exists. |
ScriptProcessorRegistry |
getScriptProcessorRegistry()
Gets the script processor registry. |
TemplateProcessorRegistry |
getTemplateProcessorRegistry()
Gets the template processor registry. |
void |
init(org.springframework.context.ApplicationContext applicationContext)
Initialisation hook point. |
protected String |
loadTemplateStringFromPath(String templatePath)
|
void |
setScriptObjects(Map<String,Object> scriptObjects)
Set any additional objects to be applied to the script model when executing any JavaScript attached to the template. |
void |
setScriptProcessorRegistry(ScriptProcessorRegistry scriptProcessorRegistry)
Sets the script processor registry. |
void |
setTemplateProcessorRegistry(TemplateProcessorRegistry templateProcessorRegistry)
Sets the template processor registry. |
Methods inherited from class org.springframework.extensions.surf.render.AbstractProcessor |
---|
execute, executeFooter, getProperty, getRenderingDescriptor, getRenderingDescriptor, onApplicationEvent, setApplicationContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PREFIX_CLASSPATH
Constructor Detail |
---|
public FreemarkerProcessor()
Method Detail |
---|
public void init(org.springframework.context.ApplicationContext applicationContext)
Processor
init
in interface Processor
init
in class AbstractProcessor
applicationContext
- the application contextpublic void setTemplateProcessorRegistry(TemplateProcessorRegistry templateProcessorRegistry)
templateProcessorRegistry
- the new template processor registrypublic TemplateProcessorRegistry getTemplateProcessorRegistry()
public void setScriptProcessorRegistry(ScriptProcessorRegistry scriptProcessorRegistry)
scriptProcessorRegistry
- the new script processor registrypublic ScriptProcessorRegistry getScriptProcessorRegistry()
public void setScriptObjects(Map<String,Object> scriptObjects)
scriptObjects
- public void executeHeader(ProcessorContext pc) throws RendererExecutionException
Processor
executeHeader
in interface Processor
executeHeader
in class AbstractProcessor
pc
- processorContext
RendererExecutionException
public void executeBody(ProcessorContext pc) throws RendererExecutionException
executeBody
in interface Processor
executeBody
in class AbstractProcessor
pc
- the processor context
RendererExecutionException
- the renderer execution exceptionpublic boolean exists(ProcessorContext pc)
Processor
protected String loadTemplateStringFromPath(String templatePath) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |