Class ResourceLoaderWrapper
- java.lang.Object
-
- org.apache.velocity.runtime.resource.loader.ResourceLoader
-
- com.atlassian.confluence.util.velocity.ResourceLoaderWrapper
-
public abstract class ResourceLoaderWrapper extends org.apache.velocity.runtime.resource.loader.ResourceLoaderWrapper class for writing resource loader filters, delegating the ResourceLoader methods to the wrapped loader.This class will also update the internal state of the delegating resource loader to reflect any mutation of the wrapped loader.
-
-
Constructor Summary
Constructors Constructor Description ResourceLoaderWrapper(org.apache.velocity.runtime.resource.loader.ResourceLoader resourceLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommonInit(org.apache.velocity.runtime.RuntimeServices runtimeServices, org.apache.commons.collections.ExtendedProperties extendedProperties)org.apache.velocity.runtime.resource.loader.ResourceLoadergetBaseResourceLoader()longgetLastModified(org.apache.velocity.runtime.resource.Resource resource)longgetModificationCheckInterval()InputStreamgetResourceStream(String resourceName)voidinit(org.apache.commons.collections.ExtendedProperties extendedProperties)booleanisCachingOn()booleanisSourceModified(org.apache.velocity.runtime.resource.Resource resource)voidsetCachingOn(boolean cachingOn)voidsetModificationCheckInterval(long ms)StringtoString()
-
-
-
Method Detail
-
init
public void init(org.apache.commons.collections.ExtendedProperties extendedProperties)
- Specified by:
initin classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
getLastModified
public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
- Specified by:
getLastModifiedin classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
isSourceModified
public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
- Specified by:
isSourceModifiedin classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
isCachingOn
public boolean isCachingOn()
- Overrides:
isCachingOnin classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
setCachingOn
public void setCachingOn(boolean cachingOn)
- Overrides:
setCachingOnin classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
setModificationCheckInterval
public void setModificationCheckInterval(long ms)
- Overrides:
setModificationCheckIntervalin classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
getModificationCheckInterval
public long getModificationCheckInterval()
- Overrides:
getModificationCheckIntervalin classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
commonInit
public void commonInit(org.apache.velocity.runtime.RuntimeServices runtimeServices, org.apache.commons.collections.ExtendedProperties extendedProperties)- Overrides:
commonInitin classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
getResourceStream
public InputStream getResourceStream(String resourceName) throws org.apache.velocity.exception.ResourceNotFoundException
- Specified by:
getResourceStreamin classorg.apache.velocity.runtime.resource.loader.ResourceLoader- Throws:
org.apache.velocity.exception.ResourceNotFoundException
-
getBaseResourceLoader
public org.apache.velocity.runtime.resource.loader.ResourceLoader getBaseResourceLoader()
-
-