public class

PluginAwareResourceManager

extends ResourceManagerImpl
java.lang.Object
   ↳ org.apache.velocity.runtime.resource.ResourceManagerImpl
     ↳ com.atlassian.velocity.PluginAwareResourceManager

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
From interface org.apache.velocity.runtime.resource.ResourceManager
[Expand]
Inherited Fields
From class org.apache.velocity.runtime.resource.ResourceManagerImpl
Public Constructors
PluginAwareResourceManager()
Public Methods
@EventListener void clearCacheOnDisable(PluginDisabledEvent event)
Clears the velocity resource cache when a plugin is disabled.
void initialize(RuntimeServices rs)
Registers this class with the EventPublisher, and delegates to the super class initialize method.
[Expand]
Inherited Methods
From class org.apache.velocity.runtime.resource.ResourceManagerImpl
From class java.lang.Object
From interface org.apache.velocity.runtime.resource.ResourceManager

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.

public void initialize (RuntimeServices rs)

Registers this class with the EventPublisher, and delegates to the super class initialize method.

Parameters
rs RuntimeServices instance
Throws
Exception