org.apache.struts2.views.velocity
Class StrutsResourceLoader

java.lang.Object
  extended by org.apache.velocity.runtime.resource.loader.ResourceLoader
      extended by org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
          extended by org.apache.struts2.views.velocity.StrutsResourceLoader

public class StrutsResourceLoader
extends org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader

Loads resource from the Thread's context ClassLoader.


Field Summary
 
Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
className, isCachingOn, modificationCheckInterval, rsvc
 
Constructor Summary
StrutsResourceLoader()
           
 
Method Summary
 InputStream getResourceStream(String name)
           
 
Methods inherited from class org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
getLastModified, init, isSourceModified
 
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

StrutsResourceLoader

public StrutsResourceLoader()
Method Detail

getResourceStream

public InputStream getResourceStream(String name)
                              throws org.apache.velocity.exception.ResourceNotFoundException
Overrides:
getResourceStream in class org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Throws:
org.apache.velocity.exception.ResourceNotFoundException


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.