org.apache.velocity.site.doxia.velocity
Class AbstractDoxiaResourceLoader
java.lang.Object
org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.velocity.site.doxia.velocity.AbstractDoxiaResourceLoader
- Direct Known Subclasses:
- DefaultDoxiaLibraryLoader, DefaultDoxiaResourceLoader
public abstract class AbstractDoxiaResourceLoader
- extends org.apache.velocity.runtime.resource.loader.ResourceLoader
This is the base for Doxia-related Velocity ResourceLoader. It short
cuts the caching mechanism and makes sure that Resource loaders deriving from
this base class never cache templates.
- Version:
- $Revision: 526751 $
- Author:
- Henning P. Schmiedehausen
| Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader |
className, isCachingOn, log, modificationCheckInterval, rsvc |
|
Method Summary |
long |
getLastModified(org.apache.velocity.runtime.resource.Resource resource)
|
abstract java.io.InputStream |
getResourceStream(java.lang.String templateName)
|
void |
init(org.apache.commons.collections.ExtendedProperties properties)
|
boolean |
isCachingOn()
|
boolean |
isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
|
void |
setCachingOn(boolean caching)
|
| Methods inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader |
commonInit, getClassName, getModificationCheckInterval, setModificationCheckInterval |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDoxiaResourceLoader
protected AbstractDoxiaResourceLoader()
- Creates a new AbstractDoxiaResourceLoader object.
init
public void init(org.apache.commons.collections.ExtendedProperties properties)
- Specified by:
init in class org.apache.velocity.runtime.resource.loader.ResourceLoader
- See Also:
ResourceLoader.init(ExtendedProperties)
setCachingOn
public void setCachingOn(boolean caching)
- Overrides:
setCachingOn in class org.apache.velocity.runtime.resource.loader.ResourceLoader
- See Also:
ResourceLoader.setCachingOn(boolean)
isCachingOn
public boolean isCachingOn()
- Overrides:
isCachingOn in class org.apache.velocity.runtime.resource.loader.ResourceLoader
- See Also:
ResourceLoader.isCachingOn()
getLastModified
public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
- Specified by:
getLastModified in class org.apache.velocity.runtime.resource.loader.ResourceLoader
- See Also:
ResourceLoader.getLastModified(Resource)
isSourceModified
public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
- Specified by:
isSourceModified in class org.apache.velocity.runtime.resource.loader.ResourceLoader
- See Also:
ResourceLoader.isSourceModified(Resource)
getResourceStream
public abstract java.io.InputStream getResourceStream(java.lang.String templateName)
throws org.apache.velocity.exception.ResourceNotFoundException
- Specified by:
getResourceStream in class org.apache.velocity.runtime.resource.loader.ResourceLoader
- Throws:
org.apache.velocity.exception.ResourceNotFoundException- See Also:
ResourceLoader.getResourceStream(String)
Copyright © 2006-2007 The Apache Software Foundation. All Rights Reserved.