Class AbstractCachingWebPanelRenderer
java.lang.Object
com.atlassian.templaterenderer.velocity.AbstractCachingWebPanelRenderer
- All Implemented Interfaces:
com.atlassian.plugin.web.api.renderer.WebPanelRenderer,org.springframework.beans.factory.InitializingBean
public abstract class AbstractCachingWebPanelRenderer
extends Object
implements com.atlassian.plugin.web.api.renderer.WebPanelRenderer, org.springframework.beans.factory.InitializingBean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCachingWebPanelRenderer(com.atlassian.plugin.event.PluginEventManager pluginEventManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected abstract com.atlassian.templaterenderer.TemplateRenderercreateRenderer(com.atlassian.plugin.Plugin plugin) voiddestroy()voidpluginUnloaded(com.atlassian.plugin.event.events.PluginDisabledEvent disabledEvent) voidrender(String s, com.atlassian.plugin.Plugin plugin, Map<String, Object> stringObjectMap, Writer writer) voidrenderFragment(Writer writer, String fragment, com.atlassian.plugin.Plugin plugin, Map<String, Object> stringObjectMap) renderFragment(String fragment, com.atlassian.plugin.Plugin plugin, Map<String, Object> stringObjectMap)
-
Constructor Details
-
AbstractCachingWebPanelRenderer
protected AbstractCachingWebPanelRenderer(com.atlassian.plugin.event.PluginEventManager pluginEventManager)
-
-
Method Details
-
getResourceType
- Specified by:
getResourceTypein interfacecom.atlassian.plugin.web.api.renderer.WebPanelRenderer
-
render
public void render(String s, com.atlassian.plugin.Plugin plugin, Map<String, Object> stringObjectMap, Writer writer) throws IOException- Specified by:
renderin interfacecom.atlassian.plugin.web.api.renderer.WebPanelRenderer- Throws:
IOException
-
renderFragment
public String renderFragment(String fragment, com.atlassian.plugin.Plugin plugin, Map<String, Object> stringObjectMap) - Specified by:
renderFragmentin interfacecom.atlassian.plugin.web.api.renderer.WebPanelRenderer
-
renderFragment
public void renderFragment(Writer writer, String fragment, com.atlassian.plugin.Plugin plugin, Map<String, Object> stringObjectMap) throws IOException- Specified by:
renderFragmentin interfacecom.atlassian.plugin.web.api.renderer.WebPanelRenderer- Throws:
IOException
-
createRenderer
protected abstract com.atlassian.templaterenderer.TemplateRenderer createRenderer(com.atlassian.plugin.Plugin plugin) - Parameters:
plugin- thePluginto 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 theTemplateContextFactory.- Returns:
- a
TemplateRendererfor the suppliedPlugin. This may be cached by the underlying implementation.
-
destroy
public void destroy() -
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
pluginUnloaded
public void pluginUnloaded(com.atlassian.plugin.event.events.PluginDisabledEvent disabledEvent)
-