public class ClasspathResourceLoader extends ResourceLoader2
className, isCachingOn, log, modificationCheckInterval, rsvc
Constructor and Description |
---|
ClasspathResourceLoader() |
Modifier and Type | Method and Description |
---|---|
long |
getLastModified(Resource resource)
Get the last modified time of the InputStream source
that was used to create the template.
|
Reader |
getResourceReader(String name,
String encoding)
Get a Reader so that the Runtime can build a
template with it.
|
void |
init(ExtProperties configuration)
This is abstract in the base class, so we need it
|
boolean |
isSourceModified(Resource resource)
Given a template, check to see if the source of InputStream
has been modified.
|
buildReader, commonInit, getClassName, getModificationCheckInterval, isCachingOn, resourceExists, setCachingOn, setModificationCheckInterval
public void init(ExtProperties configuration)
init
in class ResourceLoader2
configuration
- public Reader getResourceReader(String name, String encoding) throws ResourceNotFoundException
getResourceReader
in class ResourceLoader2
name
- name of template to getencoding
- asked encodingResourceNotFoundException
- if template not found
in classpath.public boolean isSourceModified(Resource resource)
ResourceLoader2
isSourceModified
in class ResourceLoader2
ResourceLoader2.isSourceModified(org.apache.velocity.runtime.resource.Resource)
public long getLastModified(Resource resource)
ResourceLoader2
getLastModified
in class ResourceLoader2
ResourceLoader2.getLastModified(org.apache.velocity.runtime.resource.Resource)
Copyright © 2000–2016 The Apache Software Foundation. All rights reserved.