com.atlassian.templaterenderer.velocity.one.six.internal
Class VelocityTemplateRendererFactoryImpl
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityTemplateRendererFactoryImpl
public VelocityTemplateRendererFactoryImpl(com.atlassian.templaterenderer.TemplateContextFactory templateContextFactory,
String pluginKey,
ClassLoader classLoader)
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 © 2011 Atlassian. All Rights Reserved.