freemarker.template.cache
Interface RegistryAccepter

All Known Implementing Classes:
FileTemplateCache, FileRetriever, LocalizedFileRetriever

public interface RegistryAccepter

Interface to allow a TemplateRegistry to be set. This is normally used for CacheRetrievers that want to be able to parameterize the type of Template objects to create.

Version:
$Id: RegistryAccepter.java,v 1.8 2003/11/03 03:33:32 run2000 Exp $
Author:
Nicholas Cull

Method Summary
 TemplateRegistry getTemplateRegistry()
          Retrieves the current TemplateRegistry in use.
 void setTemplateRegistry(TemplateRegistry registry)
          Sets a template registry implementation to use when creating new templates.
 

Method Detail

setTemplateRegistry

public void setTemplateRegistry(TemplateRegistry registry)
Sets a template registry implementation to use when creating new templates.
Parameters:
registry - the registry to be used for creating new objects

getTemplateRegistry

public TemplateRegistry getTemplateRegistry()
Retrieves the current TemplateRegistry in use.
Returns:
the registry currently in use when creating new objects