public class CompatibleVelocityResourceManager extends ConfluenceVelocityResourceManager
This resource manager will instantiate resource loaders which will correct legal Velocity 1.3 syntax to legal Velocity 1.4 syntax for any resource loader defined with the velocity13.compatibility property set to true
Velocity13CompatibleResourceLoader
ConfluenceVelocityResourceManager.ConfluenceResourceFactory
ConfigurableResourceManager.ResourceFactory
globalCache, log, RESOURCE_CONTENT, RESOURCE_TEMPLATE, resourceLoaders, rsvc
Constructor and Description |
---|
CompatibleVelocityResourceManager() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.velocity.runtime.resource.loader.ResourceLoader |
postProcessLoader(org.apache.velocity.runtime.resource.loader.ResourceLoader loader,
org.apache.commons.collections.ExtendedProperties config)
Wraps configured resource loaders in a
Velocity13CompatibleResourceLoader |
getResourceFactory, initialize, setCacheFactory, setCacheFactory
getLoaderNameForResource, getResource, loadResource, refreshResource
protected org.apache.velocity.runtime.resource.loader.ResourceLoader postProcessLoader(org.apache.velocity.runtime.resource.loader.ResourceLoader loader, org.apache.commons.collections.ExtendedProperties config)
Velocity13CompatibleResourceLoader
postProcessLoader
in class ConfluenceVelocityResourceManager
loader
- Resource loader to processconfig
- Configured properties for the resource loaderCopyright © 2003–2020 Atlassian. All rights reserved.