com.atlassian.templaterenderer.velocity
Class AbstractCachingWebPanelRenderer
java.lang.Object
com.atlassian.templaterenderer.velocity.AbstractCachingWebPanelRenderer
- All Implemented Interfaces:
- com.atlassian.plugin.web.renderer.WebPanelRenderer, org.springframework.beans.factory.InitializingBean
public abstract class AbstractCachingWebPanelRenderer
- extends Object
- implements com.atlassian.plugin.web.renderer.WebPanelRenderer, org.springframework.beans.factory.InitializingBean
|
Method Summary |
void |
afterPropertiesSet()
|
protected abstract com.atlassian.templaterenderer.TemplateRenderer |
createRenderer(com.atlassian.plugin.Plugin plugin)
|
void |
destroy()
|
String |
getResourceType()
|
void |
pluginUnloaded(com.atlassian.plugin.event.events.PluginDisabledEvent disabledEvent)
|
void |
render(String s,
com.atlassian.plugin.Plugin plugin,
Map<String,Object> stringObjectMap,
Writer writer)
|
String |
renderFragment(String fragment,
com.atlassian.plugin.Plugin plugin,
Map<String,Object> stringObjectMap)
|
void |
renderFragment(Writer writer,
String fragment,
com.atlassian.plugin.Plugin plugin,
Map<String,Object> stringObjectMap)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCachingWebPanelRenderer
protected AbstractCachingWebPanelRenderer(com.atlassian.plugin.event.PluginEventManager pluginEventManager)
getResourceType
public String getResourceType()
- Specified by:
getResourceType in interface com.atlassian.plugin.web.renderer.WebPanelRenderer
render
public void render(String s,
com.atlassian.plugin.Plugin plugin,
Map<String,Object> stringObjectMap,
Writer writer)
throws IOException
- Specified by:
render in interface com.atlassian.plugin.web.renderer.WebPanelRenderer
- Throws:
IOException
renderFragment
public String renderFragment(String fragment,
com.atlassian.plugin.Plugin plugin,
Map<String,Object> stringObjectMap)
- Specified by:
renderFragment in interface com.atlassian.plugin.web.renderer.WebPanelRenderer
renderFragment
public void renderFragment(Writer writer,
String fragment,
com.atlassian.plugin.Plugin plugin,
Map<String,Object> stringObjectMap)
throws IOException
- Specified by:
renderFragment in interface com.atlassian.plugin.web.renderer.WebPanelRenderer
- Throws:
IOException
createRenderer
protected abstract com.atlassian.templaterenderer.TemplateRenderer createRenderer(com.atlassian.plugin.Plugin plugin)
- Parameters:
plugin - the Plugin to be used as context for the created renderer. It provides the ClassLoader for
resolving templates and other resources and a plugin key to be used to resolve template context items from the
TemplateContextFactory.
- Returns:
- a
TemplateRenderer for the supplied Plugin. This may be cached by the underlying
implementation.
destroy
public void destroy()
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
pluginUnloaded
public void pluginUnloaded(com.atlassian.plugin.event.events.PluginDisabledEvent disabledEvent)
Copyright © 2012 Atlassian. All Rights Reserved.