org.tinyjee.maven.dim.sources
Class TemplateSource.UrlResourceLoader

java.lang.Object
  extended by org.apache.velocity.runtime.resource.loader.ResourceLoader
      extended by org.tinyjee.maven.dim.sources.TemplateSource.UrlResourceLoader
Enclosing class:
TemplateSource

public static class TemplateSource.UrlResourceLoader
extends ResourceLoader

Resolves templates from Urls.


Field Summary
 
Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
className, isCachingOn, log, modificationCheckInterval, rsvc
 
Constructor Summary
TemplateSource.UrlResourceLoader()
           
 
Method Summary
 long getLastModified(Resource resource)
           
 InputStream getResourceStream(String sourceUrl)
           
 void init(org.apache.commons.collections.ExtendedProperties extendedProperties)
           
 boolean isSourceModified(Resource resource)
           
 
Methods inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
commonInit, getClassName, getModificationCheckInterval, isCachingOn, setCachingOn, setModificationCheckInterval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateSource.UrlResourceLoader

public TemplateSource.UrlResourceLoader()
Method Detail

init

public void init(org.apache.commons.collections.ExtendedProperties extendedProperties)
Specified by:
init in class ResourceLoader

getResourceStream

public InputStream getResourceStream(String sourceUrl)
                              throws ResourceNotFoundException
Specified by:
getResourceStream in class ResourceLoader
Throws:
ResourceNotFoundException

isSourceModified

public boolean isSourceModified(Resource resource)
Specified by:
isSourceModified in class ResourceLoader

getLastModified

public long getLastModified(Resource resource)
Specified by:
getLastModified in class ResourceLoader