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, setModificationCheckInterval
public void init(org.apache.commons.collections.ExtendedProperties configuration)
init
in class ResourceLoader
public java.io.InputStream getResourceStream(java.lang.String name) throws ResourceNotFoundException
getResourceStream
in class ResourceLoader
name
- name of template to getResourceNotFoundException
- if template not found
in classpath.public boolean isSourceModified(Resource resource)
isSourceModified
in class ResourceLoader
public long getLastModified(Resource resource)
getLastModified
in class ResourceLoader
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.