public class ProjectResourceLoader
extends org.apache.velocity.runtime.resource.loader.ResourceLoader
| Constructor and Description |
|---|
ProjectResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
long |
getLastModified(org.apache.velocity.runtime.resource.Resource resource) |
InputStream |
getResourceStream(String templateName)
Get an InputStream so that the Runtime can build a
template with it.
|
void |
init(org.apache.commons.collections.ExtendedProperties configuration) |
boolean |
isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
How to keep track of all the modified times
across the paths.
|
public void init(org.apache.commons.collections.ExtendedProperties configuration)
init in class org.apache.velocity.runtime.resource.loader.ResourceLoaderpublic InputStream getResourceStream(String templateName) throws org.apache.velocity.exception.ResourceNotFoundException
getResourceStream in class org.apache.velocity.runtime.resource.loader.ResourceLoadertemplateName - name of template to getorg.apache.velocity.exception.ResourceNotFoundException - if template not found
in the file template path.public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
isSourceModified in class org.apache.velocity.runtime.resource.loader.ResourceLoaderpublic long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
getLastModified in class org.apache.velocity.runtime.resource.loader.ResourceLoaderCopyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.