com.atlassian.confluence.util.velocity
Class CompatibleVelocityResourceManager
java.lang.Object
org.apache.velocity.runtime.resource.ResourceManagerImpl
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
This resource manager is not entirely accurate as it will make any loader class compatible as long as one instance of
the class is declared as compatible in the configuration. It would be more effort to make it specific to the loader name
rather than the class and isn'y likely to impact us as we don't use more than one instance of any particular resource loader
- See Also:
Velocity13CompatibleResourceLoader
Fields inherited from class org.apache.velocity.runtime.resource.ResourceManagerImpl |
globalCache, RESOURCE_CONTENT, RESOURCE_TEMPLATE, resourceLoaders, rsvc |
Method Summary |
void |
initialize(org.apache.velocity.runtime.RuntimeServices runtimeServices)
|
Methods inherited from class org.apache.velocity.runtime.resource.ResourceManagerImpl |
getLoaderNameForResource, getResource, loadResource, refreshResource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompatibleVelocityResourceManager
public CompatibleVelocityResourceManager()
initialize
public void initialize(org.apache.velocity.runtime.RuntimeServices runtimeServices)
throws java.lang.Exception
- Specified by:
initialize
in interface org.apache.velocity.runtime.resource.ResourceManager
- Overrides:
initialize
in class ConfluenceVelocityResourceManager
- Throws:
java.lang.Exception
Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.