java.lang.Object | |
↳ | com.atlassian.confluence.util.velocity.ConfluenceVelocityResourceCache |
Known Direct Subclasses |
Clearable velocity cache.
We configure velocity to use this cache, then we can get at the static methods to globally remove things from the cache if we need to. This is necessary for the dynamic decorator stuff.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
log |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a resource cache using the provided cache manager.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
since 2.9 Use getInstance().clear()
| |||||||||||
Get the Confluence resource cache singleton.
| |||||||||||
Remove a particular object from the cache
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.velocity.runtime.resource.ResourceCache
|
Create a resource cache using the provided cache manager. Everytime this is called, the resource cache singleton is replaced with the newly provided instance. There should only ever be one of these created but as we don't have control over the creating code (WebWork velcoity manager), we can't enforce singleton use via a factory method.
This method is deprecated.
since 2.9 Use getInstance().clear()
Clear the contents of all caches that have been created so far
Get the Confluence resource cache singleton.
Remove a particular object from the cache
key | the cache-key to remove. Any cached object with a key that has this key as a substring will be removed, for safety's sake. |
---|