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.ResourceLoader
Wrapper 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 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()
-
-
-
Method Detail
-
init
public void init(org.apache.commons.collections.ExtendedProperties extendedProperties)
- Specified by:
init
in classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
getLastModified
public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
- Specified by:
getLastModified
in classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
isSourceModified
public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
- Specified by:
isSourceModified
in classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
isCachingOn
public boolean isCachingOn()
- Overrides:
isCachingOn
in classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
setCachingOn
public void setCachingOn(boolean cachingOn)
- Overrides:
setCachingOn
in classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
setModificationCheckInterval
public void setModificationCheckInterval(long ms)
- Overrides:
setModificationCheckInterval
in classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
getModificationCheckInterval
public long getModificationCheckInterval()
- Overrides:
getModificationCheckInterval
in classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
commonInit
public void commonInit(org.apache.velocity.runtime.RuntimeServices runtimeServices, org.apache.commons.collections.ExtendedProperties extendedProperties)
- Overrides:
commonInit
in classorg.apache.velocity.runtime.resource.loader.ResourceLoader
-
getResourceStream
public InputStream getResourceStream(String resourceName) throws org.apache.velocity.exception.ResourceNotFoundException
- Specified by:
getResourceStream
in classorg.apache.velocity.runtime.resource.loader.ResourceLoader
- Throws:
org.apache.velocity.exception.ResourceNotFoundException
-
getBaseResourceLoader
public org.apache.velocity.runtime.resource.loader.ResourceLoader getBaseResourceLoader()
-
-