com.atlassian.confluence.util.velocity
Class CompatibleVelocityResourceManager
java.lang.Object
com.atlassian.confluence.util.velocity.ConfigurableResourceManager
com.atlassian.confluence.util.velocity.ConfluenceVelocityResourceManager
com.atlassian.confluence.util.velocity.CompatibleVelocityResourceManager
- All Implemented Interfaces:
- org.apache.velocity.runtime.resource.ResourceManager
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
- See Also:
Velocity13CompatibleResourceLoader
Method Summary |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompatibleVelocityResourceManager
public CompatibleVelocityResourceManager()
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 a
Velocity13CompatibleResourceLoader
- Overrides:
postProcessLoader
in class ConfluenceVelocityResourceManager
- 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.
Copyright © 2003-2013 Atlassian. All Rights Reserved.