Class CompatibleVelocityResourceManager
java.lang.Object
com.atlassian.confluence.velocity.ConfigurableResourceManager
com.atlassian.confluence.util.velocity.ConfluenceVelocityResourceManager
com.atlassian.confluence.util.velocity.CompatibleVelocityResourceManager
- All Implemented Interfaces:
org.apache.velocity.runtime.resource.ResourceManager
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
- See Also:
-
Velocity13CompatibleResourceLoader
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.confluence.util.velocity.ConfluenceVelocityResourceManager
ConfluenceVelocityResourceManager.ConfluenceResourceFactory
Nested classes/interfaces inherited from class com.atlassian.confluence.velocity.ConfigurableResourceManager
ConfigurableResourceManager.ResourceFactory
-
Field Summary
Fields inherited from class com.atlassian.confluence.velocity.ConfigurableResourceManager
globalCache, log, RESOURCE_CONTENT, RESOURCE_TEMPLATE, resourceLoaders, rsvc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 aVelocity13CompatibleResourceLoader
Methods inherited from class com.atlassian.confluence.util.velocity.ConfluenceVelocityResourceManager
getResourceFactory, initialize, setCacheFactory, setCacheFactory
Methods inherited from class com.atlassian.confluence.velocity.ConfigurableResourceManager
getLoaderNameForResource, getResource, loadResource, refreshResource
-
Constructor Details
-
CompatibleVelocityResourceManager
public CompatibleVelocityResourceManager()
-
-
Method Details
-
postProcessLoader
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 aVelocity13CompatibleResourceLoader
- Overrides:
postProcessLoader
in classConfluenceVelocityResourceManager
- Parameters:
loader
- Resource loader to processconfig
- Configured properties for the resource loader- Returns:
- final resource loader instance to be used at runtime. Must not be null.
-