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 Details

    • AbstractCachingWebPanelRenderer

      protected AbstractCachingWebPanelRenderer(com.atlassian.plugin.event.PluginEventManager pluginEventManager)
  • Method Details

    • getResourceType

      public String getResourceType()
      Specified by:
      getResourceType in interface com.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:
      render in interface com.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:
      renderFragment in interface com.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:
      renderFragment in interface com.atlassian.plugin.web.api.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)