Class Overview
Listens for plugin events, and clears the velocity resource cache accordingly.
The resource cache contains the velocity templates that have already been rendered by the underlying
VelocityEngine
.
Summary
Nested Classes |
class |
PluginAwareResourceManager.Cache |
|
[Expand]
Inherited Constants |
From class
org.apache.velocity.runtime.resource.ResourceManagerImpl
int |
RESOURCE_CONTENT |
|
int |
RESOURCE_TEMPLATE |
|
|
From interface
org.apache.velocity.runtime.resource.ResourceManager
int |
RESOURCE_CONTENT |
|
int |
RESOURCE_TEMPLATE |
|
|
[Expand]
Inherited Fields |
From class
org.apache.velocity.runtime.resource.ResourceManagerImpl
|
Public Constructors
public
PluginAwareResourceManager
()
Public Methods
@EventListener
public
void
clearCacheOnDisable
(PluginDisabledEvent event)
Clears the velocity resource cache when a plugin is disabled.
Parameters
event
| The event instance fired when a plugin is disabled.
|
Registers this class with the EventPublisher, and delegates to the super class initialize method.
Parameters
rs
| RuntimeServices instance |