|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.template.velocity.VelocityTemplateCache
public class VelocityTemplateCache
Caches per-template information so that we only calculate it at most once.
Constructor Summary | |
---|---|
VelocityTemplateCache()
Creates a new VelocityDirectiveCache backed by a DefaultDirectiveChecker . |
|
VelocityTemplateCache(com.atlassian.velocity.htmlsafe.directive.DirectiveChecker directiveChecker)
Creates a new VelocityDirectiveCache backed by the supplied DirectiveChecker. |
Method Summary | |
---|---|
boolean |
isDirectivePresent(String directiveName,
org.apache.velocity.Template template)
Determines whether a directive with a specified name is present on a template instance. |
void |
onClearCaches(ClearCacheEvent clearCacheEvent)
Clears the cache upon receiving a ClearCacheEvent. |
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VelocityTemplateCache()
DefaultDirectiveChecker
.
public VelocityTemplateCache(com.atlassian.velocity.htmlsafe.directive.DirectiveChecker directiveChecker)
directiveChecker
- the DirectiveChecker to useMethod Detail |
---|
public void start() throws Exception
Startable
start
in interface Startable
Exception
- Allows implementations to throw an Exception.@EventListener public void onClearCaches(ClearCacheEvent clearCacheEvent)
clearCacheEvent
- a ClearCacheEventpublic boolean isDirectivePresent(String directiveName, org.apache.velocity.Template template)
directiveName
- The name of the directive to look for.template
- The template where we will search for the directive.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |