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.
-
Field Summary
Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
className, isCachingOn, log, modificationCheckInterval, rsvc
-
Constructor Summary
ConstructorsConstructorDescriptionResourceLoaderWrapper
(org.apache.velocity.runtime.resource.loader.ResourceLoader resourceLoader) -
Method Summary
Modifier and TypeMethodDescriptionvoid
commonInit
(org.apache.velocity.runtime.RuntimeServices runtimeServices, org.apache.commons.collections.ExtendedProperties extendedProperties) org.apache.velocity.runtime.resource.loader.ResourceLoader
long
getLastModified
(org.apache.velocity.runtime.resource.Resource resource) long
getResourceStream
(String resourceName) void
init
(org.apache.commons.collections.ExtendedProperties extendedProperties) boolean
boolean
isSourceModified
(org.apache.velocity.runtime.resource.Resource resource) void
setCachingOn
(boolean cachingOn) void
setModificationCheckInterval
(long ms) toString()
Methods inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
getClassName, resourceExists
-
Constructor Details
-
ResourceLoaderWrapper
public ResourceLoaderWrapper(org.apache.velocity.runtime.resource.loader.ResourceLoader resourceLoader)
-
-
Method Details
-
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() -
toString
-