public class ClasspathResourceLoader extends ResourceLoader
className, isCachingOn, modificationCheckInterval, rsvc| Constructor and Description |
|---|
ClasspathResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
long |
getLastModified(Resource resource)
Defaults to return 0
|
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)
Defaults to return false.
|
commonInit, getClassName, getModificationCheckInterval, isCachingOn, setCachingOn, setModificationCheckIntervalpublic void init(org.apache.commons.collections.ExtendedProperties configuration)
init in class ResourceLoaderpublic java.io.InputStream getResourceStream(java.lang.String name)
throws ResourceNotFoundException
getResourceStream in class ResourceLoadername - name of template to getResourceNotFoundException - if template not found
in classpath.public boolean isSourceModified(Resource resource)
isSourceModified in class ResourceLoaderpublic long getLastModified(Resource resource)
getLastModified in class ResourceLoaderCopyright ? 2002 Apache Software Foundation. All Rights Reserved.