com.atlassian.templaterenderer.velocity.one.six.internal
Class VelocityTemplateRendererFactoryServiceFactory
java.lang.Object
com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererFactoryServiceFactory
- All Implemented Interfaces:
- com.atlassian.templaterenderer.TemplateRendererFactory, VelocityTemplateRendererFactory, org.osgi.framework.ServiceFactory
public class VelocityTemplateRendererFactoryServiceFactory
- extends Object
- implements org.osgi.framework.ServiceFactory, VelocityTemplateRendererFactory
Service factory for instantiating velocity template renderer factories. This will make sure the factory knows about
the importing bundles class loader and plugin key.
|
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 |
Object |
getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration serviceRegistration)
|
void |
ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration serviceRegistration,
Object o)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityTemplateRendererFactoryServiceFactory
public VelocityTemplateRendererFactoryServiceFactory(com.atlassian.templaterenderer.TemplateContextFactory templateContextFactory)
getService
public Object getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration serviceRegistration)
- Specified by:
getService in interface org.osgi.framework.ServiceFactory
ungetService
public void ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration serviceRegistration,
Object o)
- Specified by:
ungetService in interface org.osgi.framework.ServiceFactory
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
getInstance
public com.atlassian.templaterenderer.TemplateRenderer getInstance(ClassLoader classLoader)
- Specified by:
getInstance in interface com.atlassian.templaterenderer.TemplateRendererFactory
Copyright © 2011 Atlassian. All Rights Reserved.