public abstract class ResourceLoaderWrapper
extends org.apache.velocity.runtime.resource.loader.ResourceLoader
This class will also update the internal state of the delegating resource loader to reflect any mutation of the wrapped loader.
Constructor and Description |
---|
ResourceLoaderWrapper(org.apache.velocity.runtime.resource.loader.ResourceLoader resourceLoader) |
Modifier and Type | Method and Description |
---|---|
void |
commonInit(org.apache.velocity.runtime.RuntimeServices runtimeServices,
org.apache.commons.collections.ExtendedProperties extendedProperties) |
org.apache.velocity.runtime.resource.loader.ResourceLoader |
getBaseResourceLoader() |
long |
getLastModified(org.apache.velocity.runtime.resource.Resource resource) |
long |
getModificationCheckInterval() |
InputStream |
getResourceStream(String resourceName) |
void |
init(org.apache.commons.collections.ExtendedProperties extendedProperties) |
boolean |
isCachingOn() |
boolean |
isSourceModified(org.apache.velocity.runtime.resource.Resource resource) |
void |
setCachingOn(boolean cachingOn) |
void |
setModificationCheckInterval(long ms) |
String |
toString() |
public ResourceLoaderWrapper(org.apache.velocity.runtime.resource.loader.ResourceLoader resourceLoader)
public void init(org.apache.commons.collections.ExtendedProperties extendedProperties)
init
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
getLastModified
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
isSourceModified
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public boolean isCachingOn()
isCachingOn
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public void setCachingOn(boolean cachingOn)
setCachingOn
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public void setModificationCheckInterval(long ms)
setModificationCheckInterval
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public long getModificationCheckInterval()
getModificationCheckInterval
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public void commonInit(org.apache.velocity.runtime.RuntimeServices runtimeServices, org.apache.commons.collections.ExtendedProperties extendedProperties)
commonInit
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public InputStream getResourceStream(String resourceName) throws org.apache.velocity.exception.ResourceNotFoundException
getResourceStream
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.velocity.exception.ResourceNotFoundException
public org.apache.velocity.runtime.resource.loader.ResourceLoader getBaseResourceLoader()
Copyright © 2003–2020 Atlassian. All rights reserved.