Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
public VelocityTemplateCache()
DefaultDirectiveChecker
.public VelocityTemplateCache(com.atlassian.velocity.htmlsafe.directive.DirectiveChecker directiveChecker)
directiveChecker
- the DirectiveChecker to usepublic void start() throws Exception
Startable
@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.Copyright © 2002-2022 Atlassian. All Rights Reserved.