public class PluginAwareResourceManager
extends org.apache.velocity.runtime.resource.ResourceManagerImpl
The resource cache contains the velocity templates that have already been rendered by the underlying
VelocityEngine
.
Modifier and Type | Class and Description |
---|---|
static class |
PluginAwareResourceManager.Cache |
Constructor and Description |
---|
PluginAwareResourceManager() |
Modifier and Type | Method and Description |
---|---|
void |
clearCacheOnDisable(com.atlassian.plugin.event.events.PluginDisabledEvent event)
Clears the velocity resource cache when a plugin is disabled.
|
void |
initialize(org.apache.velocity.runtime.RuntimeServices rs)
Registers this class with the
EventPublisher , and delegates to the super class initialize method. |
public void initialize(org.apache.velocity.runtime.RuntimeServices rs) throws Exception
EventPublisher
, and delegates to the super class initialize method.initialize
in interface org.apache.velocity.runtime.resource.ResourceManager
initialize
in class org.apache.velocity.runtime.resource.ResourceManagerImpl
rs
- RuntimeServices instanceException
@EventListener public void clearCacheOnDisable(com.atlassian.plugin.event.events.PluginDisabledEvent event)
event
- The event instance fired when a plugin is disabled.Copyright © 2002-2021 Atlassian. All Rights Reserved.