org.codehaus.plexus.velocity

Class SiteResourceLoader


public class SiteResourceLoader
extends ResourceLoader

Alloww you to dynamically add resources that you want to be processed by Velocity. For example if you want ot generate a site and pull in some random files to be interpolated by Velocity you can use this resource loader.
Author:
Jason van Zyl

Method Summary

long
getLastModified(org.apache.velocity.runtime.resource.Resource resource)
InputStream
getResourceStream(String name)
void
init(ExtendedProperties p)
boolean
isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
static void
setResource(String staticResource)

Method Details

getLastModified

public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)

getResourceStream

public InputStream getResourceStream(String name)
            throws ResourceNotFoundException

init

public void init(ExtendedProperties p)

isSourceModified

public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)

setResource

public static void setResource(String staticResource)