freemarker.template.cache
Class FileRetrieverFactory

java.lang.Object
  extended by freemarker.template.cache.FileRetrieverFactory
All Implemented Interfaces:
CacheRetrieverFactory<FileRetriever,FileRetrieverParameters>

public final class FileRetrieverFactory
extends java.lang.Object
implements CacheRetrieverFactory<FileRetriever,FileRetrieverParameters>

Factory class for creating FileRetriever classes using the given parameter class.

Since:
1.9
Version:
$Id: FileRetrieverFactory.java 1112 2013-04-12 02:59:25Z run2000 $
Author:
Nicholas Cull

Field Summary
static FileRetrieverFactory INSTANCE
          The singleton instance of this FileRetrieverFactory
 
Method Summary
 FileRetriever create(FileRetrieverParameters params)
          Create a FileRetriever with the given parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final FileRetrieverFactory INSTANCE
The singleton instance of this FileRetrieverFactory

Method Detail

create

public FileRetriever create(FileRetrieverParameters params)
Create a FileRetriever with the given parameters.

Specified by:
create in interface CacheRetrieverFactory<FileRetriever,FileRetrieverParameters>
Parameters:
params - the parameters with which to create the cache retriever
Returns:
a new FileRetriever initialized with the given parameters