org.springframework.extensions.surf
Class TemplatesContainer

java.lang.Object
  extended by org.springframework.extensions.surf.TemplatesContainer

public class TemplatesContainer
extends Object

Simple container to gather together services that support the separation of a template engine within the Web Framework. Web Scripts have their own script processor and template processor registries. Templates process outside of this and can have entirely different processors or search paths.

Author:
muzquiano

Constructor Summary
TemplatesContainer()
           
 
Method Summary
 ScriptProcessorRegistry getScriptProcessorRegistry()
          Gets the script processor registry.
 TemplateProcessorRegistry getTemplateProcessorRegistry()
          Gets the template processor registry.
 void reset()
          Resets the templates container
 void setScriptProcessorRegistry(ScriptProcessorRegistry scriptProcessorRegistry)
          Sets the script processor registry.
 void setTemplateProcessorRegistry(TemplateProcessorRegistry templateProcessorRegistry)
          Sets the template processor registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplatesContainer

public TemplatesContainer()
Method Detail

setTemplateProcessorRegistry

public void setTemplateProcessorRegistry(TemplateProcessorRegistry templateProcessorRegistry)
Sets the template processor registry.

Parameters:
templateProcessorRegistry - the new template processor registry

getTemplateProcessorRegistry

public TemplateProcessorRegistry getTemplateProcessorRegistry()
Gets the template processor registry.

Returns:
the template processor registry

setScriptProcessorRegistry

public void setScriptProcessorRegistry(ScriptProcessorRegistry scriptProcessorRegistry)
Sets the script processor registry.

Parameters:
scriptProcessorRegistry - the new script processor registry

getScriptProcessorRegistry

public ScriptProcessorRegistry getScriptProcessorRegistry()
Gets the script processor registry.

Returns:
the script processor registry

reset

public void reset()
Resets the templates container



Copyright © 2009 SpringSource, Inc. All Rights Reserved.