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.ResourceLoader
public InputStream getResourceStream(String templateName) throws org.apache.velocity.exception.ResourceNotFoundException
getResourceStream
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
templateName
- 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.ResourceLoader
public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
getLastModified
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.