freemarker.template.cache
Interface RegistryAccepter

All Known Implementing Classes:
FileRetriever, FileTemplateCache, 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.


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

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

TemplateRegistry getTemplateRegistry()
Retrieves the current TemplateRegistry in use.

Returns:
the registry currently in use when creating new objects