public class ClasspathResourceLoader extends ResourceLoader
className, isCachingOn, log, modificationCheckInterval, rsvc| 构造器和说明 |
|---|
ClasspathResourceLoader() |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getLastModified(Resource resource)
Get the last modified time of the InputStream source
that was used to create the template.
|
java.io.InputStream |
getResourceStream(java.lang.String name)
Get an InputStream so that the Runtime can build a
template with it.
|
void |
init(org.apache.commons.collections.ExtendedProperties 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.
|
commonInit, getClassName, getModificationCheckInterval, isCachingOn, resourceExists, setCachingOn, setModificationCheckIntervalpublic void init(org.apache.commons.collections.ExtendedProperties configuration)
init 在类中 ResourceLoaderconfiguration - public java.io.InputStream getResourceStream(java.lang.String name)
throws ResourceNotFoundException
getResourceStream 在类中 ResourceLoadername - name of template to getResourceNotFoundException - if template not found
in classpath.public boolean isSourceModified(Resource resource)
ResourceLoaderisSourceModified 在类中 ResourceLoaderResourceLoader.isSourceModified(bboss.org.apache.velocity.runtime.resource.Resource)public long getLastModified(Resource resource)
ResourceLoadergetLastModified 在类中 ResourceLoaderResourceLoader.getLastModified(bboss.org.apache.velocity.runtime.resource.Resource)