org.xwiki.velocity
Class XWikiWebappResourceLoader

java.lang.Object
  extended by org.apache.velocity.runtime.resource.loader.ResourceLoader
      extended by org.apache.velocity.tools.view.servlet.WebappLoader
          extended by org.xwiki.velocity.XWikiWebappResourceLoader

public class XWikiWebappResourceLoader
extends org.apache.velocity.tools.view.servlet.WebappLoader

Extends the Velocity Tool's WebappLoader by adding the ServletContext to the Velocity Engine's Application Attributes since this is a prerequisite for WebappLoader to work correctly. This resource loader depends on the fact that the XWiki Component Manager has been set in Velocity Engine's Application Attribute prior to its initialization.

Since:
3.0M3
Version:
$Id: 2063fd8d7e418f12226719051e02db29d4afeeff $

Field Summary
 
Fields inherited from class org.apache.velocity.tools.view.servlet.WebappLoader
paths, servletContext, templatePaths
 
Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
className, isCachingOn, log, modificationCheckInterval, rsvc
 
Constructor Summary
XWikiWebappResourceLoader()
           
 
Method Summary
 void init(org.apache.commons.collections.ExtendedProperties configuration)
           
 
Methods inherited from class org.apache.velocity.tools.view.servlet.WebappLoader
getLastModified, getResourceStream, isSourceModified
 
Methods inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
commonInit, getClassName, getModificationCheckInterval, isCachingOn, resourceExists, setCachingOn, setModificationCheckInterval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XWikiWebappResourceLoader

public XWikiWebappResourceLoader()
Method Detail

init

public void init(org.apache.commons.collections.ExtendedProperties configuration)
Overrides:
init in class org.apache.velocity.tools.view.servlet.WebappLoader


Copyright © 2004-2013 XWiki. All Rights Reserved.