org.xwiki.velocity
Class XWikiWebappResourceLoader
java.lang.Object
org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.velocity.tools.view.servlet.WebappLoader
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$
| 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 |
|
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 |
XWikiWebappResourceLoader
public XWikiWebappResourceLoader()
init
public void init(org.apache.commons.collections.ExtendedProperties configuration)
-
- Overrides:
init in class org.apache.velocity.tools.view.servlet.WebappLoader
Copyright © 2004-2011 XWiki. All Rights Reserved.