public class XWikiWebappResourceLoader
extends org.apache.velocity.runtime.resource.loader.ResourceLoader
Environment
based ResourceLoader
. Mostly used to load macros.vm templates from the WAR.Constructor and Description |
---|
XWikiWebappResourceLoader() |
Modifier and Type | Method and Description |
---|---|
long |
getLastModified(org.apache.velocity.runtime.resource.Resource resource) |
Reader |
getResourceReader(String source,
String encoding) |
void |
init(org.apache.velocity.util.ExtProperties configuration) |
boolean |
isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
Checks to see if a resource has been deleted, moved or modified.
|
public void init(org.apache.velocity.util.ExtProperties configuration)
init
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public Reader getResourceReader(String source, String encoding) throws org.apache.velocity.exception.ResourceNotFoundException
getResourceReader
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.velocity.exception.ResourceNotFoundException
public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
isSourceModified
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
resource
- Resource The resource to check for modificationpublic long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
getLastModified
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
Copyright © 2004–2022 XWiki. All rights reserved.