org.codehaus.plexus.velocity
Class SiteResourceLoader

java.lang.Object
  extended by ResourceLoader
      extended by org.codehaus.plexus.velocity.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

Constructor Summary
SiteResourceLoader()
           
 
Method Summary
 long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
           
 java.io.InputStream getResourceStream(java.lang.String name)
           
 void init(ExtendedProperties p)
           
 boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
           
static void setResource(java.lang.String staticResource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiteResourceLoader

public SiteResourceLoader()
Method Detail

setResource

public static void setResource(java.lang.String staticResource)

init

public void init(ExtendedProperties p)

getResourceStream

public java.io.InputStream getResourceStream(java.lang.String name)
                                      throws ResourceNotFoundException
Throws:
ResourceNotFoundException

isSourceModified

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

getLastModified

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