A loader for templates stored on the file system. Treats the template
as relative to the configured root path. If the root path is empty
treats the template name as an absolute path.
author: Will Glass-Husain author: Aki Nieminen author: Jason van Zyl version: $Id: FileResourceLoader.java 499441 2007-01-24 15:25:58Z henning $
Get an InputStream so that the Runtime can build a
template with it.
Parameters: templateName - name of template to get InputStream containing the template throws: ResourceNotFoundException - if template not foundin the file template path.
init
public void init(ExtendedProperties configuration)(Code)
public boolean isSourceModified(Resource resource)(Code)
How to keep track of all the modified times
across the paths. Note that a file might have
appeared in a directory which is earlier in the
path; so we should search the path and see if
the file we find that way is the same as the one
that we have cached.
Parameters: resource - True if the source has been modified.
Fields inherited from org.apache.velocity.runtime.resource.loader.ResourceLoader