com.atlassian.templaterenderer.velocity.one.six.internal
Class VelocityTemplateRendererFactoryImpl

java.lang.Object
  extended by com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererFactoryImpl
All Implemented Interfaces:
com.atlassian.templaterenderer.TemplateRendererFactory, VelocityTemplateRendererFactory

public class VelocityTemplateRendererFactoryImpl
extends Object
implements VelocityTemplateRendererFactory

Factory for instantiating customised velocity template renderers. This factory will ensure that the velocity engine created has the right class loader, and that all templates are resolved from the right classloader.


Constructor Summary
VelocityTemplateRendererFactoryImpl(com.atlassian.templaterenderer.TemplateContextFactory templateContextFactory, String pluginKey, ClassLoader classLoader)
           
 
Method Summary
 com.atlassian.templaterenderer.TemplateRenderer getInstance(ClassLoader classLoader)
           
 com.atlassian.templaterenderer.TemplateRenderer getInstance(ClassLoader classLoader, Map<String,String> properties)
           
 com.atlassian.templaterenderer.TemplateRenderer getInstance(Map<String,String> properties)
          Get an instance of a velocity template renderer initialised with the given properties for the velocity engine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityTemplateRendererFactoryImpl

public VelocityTemplateRendererFactoryImpl(com.atlassian.templaterenderer.TemplateContextFactory templateContextFactory,
                                           String pluginKey,
                                           ClassLoader classLoader)
Method Detail

getInstance

public com.atlassian.templaterenderer.TemplateRenderer getInstance(ClassLoader classLoader)
Specified by:
getInstance in interface com.atlassian.templaterenderer.TemplateRendererFactory

getInstance

public com.atlassian.templaterenderer.TemplateRenderer getInstance(ClassLoader classLoader,
                                                                   Map<String,String> properties)
Specified by:
getInstance in interface VelocityTemplateRendererFactory

getInstance

public com.atlassian.templaterenderer.TemplateRenderer getInstance(Map<String,String> properties)
Description copied from interface: VelocityTemplateRendererFactory
Get an instance of a velocity template renderer initialised with the given properties for the velocity engine

Specified by:
getInstance in interface VelocityTemplateRendererFactory
Parameters:
properties - The properties to initialise the template renderer with
Returns:
A template renderer


Copyright © 2012 Atlassian. All Rights Reserved.