public class ConfluenceVelocityResourceManager extends ConfigurableResourceManager
| Modifier and Type | Class and Description | 
|---|---|
| static class  | ConfluenceVelocityResourceManager.ConfluenceResourceFactoryThis factory will return template that can be used to detect the presence of HTML in the template if required | 
ConfigurableResourceManager.ResourceFactory| Modifier and Type | Field and Description | 
|---|---|
| protected static org.apache.log4j.Category | logDeprecated. 
 since 3.4 use a private  Logger. | 
globalCache, RESOURCE_CONTENT, RESOURCE_TEMPLATE, resourceLoaders, rsvc| Constructor and Description | 
|---|
| ConfluenceVelocityResourceManager()Everytime this is called, the resource manager singleton is replaced with the newly provided instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected ConfigurableResourceManager.ResourceFactory | getResourceFactory()Template method for provisioning a  ConfigurableResourceManager.ResourceFactory. | 
| void | initialize(org.apache.velocity.runtime.RuntimeServices runtimeServices)Initialize the ResourceManager. | 
| protected org.apache.velocity.runtime.resource.loader.ResourceLoader | postProcessLoader(org.apache.velocity.runtime.resource.loader.ResourceLoader loader,
                 org.apache.commons.collections.ExtendedProperties config)Template method to allow subclasses to post process and possibly wrap a resource loader before it is added
 to the loader list. | 
| static void | setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)Deprecated. 
 since 5.10. Use  setCacheFactory(VCacheFactory) | 
| static void | setCacheFactory(com.atlassian.vcache.VCacheFactory cacheFactory) | 
getLoaderNameForResource, getResource, getResource, loadResource, refreshResource@Deprecated protected static final org.apache.log4j.Category log
Logger.public ConfluenceVelocityResourceManager()
@Deprecated public static void setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)
setCacheFactory(VCacheFactory)public static void setCacheFactory(com.atlassian.vcache.VCacheFactory cacheFactory)
public void initialize(org.apache.velocity.runtime.RuntimeServices runtimeServices)
                throws Exception
ConfigurableResourceManagerinitialize in interface org.apache.velocity.runtime.resource.ResourceManagerinitialize in class ConfigurableResourceManagerruntimeServices - The Runtime Services object which is associated with this Resource Manager.Exceptionprotected org.apache.velocity.runtime.resource.loader.ResourceLoader postProcessLoader(org.apache.velocity.runtime.resource.loader.ResourceLoader loader,
                                                                                       org.apache.commons.collections.ExtendedProperties config)
ConfigurableResourceManagerpostProcessLoader in class ConfigurableResourceManagerloader - Resource loader to processconfig - Configured properties for the resource loaderprotected ConfigurableResourceManager.ResourceFactory getResourceFactory()
ConfigurableResourceManagerTemplate method for provisioning a ConfigurableResourceManager.ResourceFactory. Subclasses may customise this factory where
 necessary.
 
This implementation returns a strategy that delegates to the default Velocity resource factory methods.
getResourceFactory in class ConfigurableResourceManagerConfigurableResourceManager.DefaultResourceFactoryCopyright © 2003–2018 Atlassian. All rights reserved.