org.ajax4jsf.builder.velocity
Class AntFileResourceLoader

java.lang.Object
  extended by org.apache.velocity.runtime.resource.loader.ResourceLoader
      extended by org.ajax4jsf.builder.velocity.AntFileResourceLoader

public class AntFileResourceLoader
extends org.apache.velocity.runtime.resource.loader.ResourceLoader

Load resource from file, name prepared by Ant

Version:
$Revision: 1.1.2.1 $ $Date: 2006/12/04 14:45:58 $
Author:
asmirnov@exadel.com (latest modification by $Author: alexsmirnov $)

Field Summary
 
Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
className, isCachingOn, modificationCheckInterval, rsvc
 
Constructor Summary
AntFileResourceLoader()
           
 
Method Summary
 long getLastModified(org.apache.velocity.runtime.resource.Resource arg0)
           
 java.io.InputStream getResourceStream(java.lang.String templateName)
           
 void init(org.apache.commons.collections.ExtendedProperties arg0)
           
 boolean isSourceModified(org.apache.velocity.runtime.resource.Resource arg0)
           
 
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

AntFileResourceLoader

public AntFileResourceLoader()
Method Detail

init

public void init(org.apache.commons.collections.ExtendedProperties arg0)
Specified by:
init in class org.apache.velocity.runtime.resource.loader.ResourceLoader

getResourceStream

public 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

isSourceModified

public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource arg0)
Specified by:
isSourceModified in class org.apache.velocity.runtime.resource.loader.ResourceLoader

getLastModified

public long getLastModified(org.apache.velocity.runtime.resource.Resource arg0)
Specified by:
getLastModified in class org.apache.velocity.runtime.resource.loader.ResourceLoader


Copyright © 2009. All Rights Reserved.