com.atlassian.templaterenderer.plugins
Class TemplateContextFactoryImpl

java.lang.Object
  extended by com.atlassian.templaterenderer.plugins.TemplateContextFactoryImpl
All Implemented Interfaces:
TemplateContextFactory, org.springframework.beans.factory.DisposableBean

public class TemplateContextFactoryImpl
extends Object
implements TemplateContextFactory, org.springframework.beans.factory.DisposableBean

Implementation of the template context factory


Constructor Summary
TemplateContextFactoryImpl(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.event.PluginEventManager eventManager)
           
 
Method Summary
 Map<String,Object> createContext(String pluginKey, Map<String,Object> contextParams)
          Create a context for a template renderer
 void destroy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateContextFactoryImpl

public TemplateContextFactoryImpl(com.atlassian.plugin.PluginAccessor pluginAccessor,
                                  com.atlassian.plugin.event.PluginEventManager eventManager)
Method Detail

createContext

public Map<String,Object> createContext(String pluginKey,
                                        Map<String,Object> contextParams)
Create a context for a template renderer

Specified by:
createContext in interface TemplateContextFactory
Parameters:
contextParams - Any extra context parameters that should be added to the context
pluginKey - The plugin to create the context for
Returns:
A map of the context

destroy

public void destroy()
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean


Copyright © 2014 Atlassian. All Rights Reserved.