com.gentics.api.portalnode.templateengine
Class TemplateProcessorProvider

java.lang.Object
  extended by com.gentics.api.portalnode.templateengine.TemplateProcessorProvider

public final class TemplateProcessorProvider
extends java.lang.Object

Static template processor provider class

Author:
norbert

Method Summary
static TemplateProcessor getTemplateProcessor()
          Get a (generic) template processor.
static TemplateProcessor getTemplateProcessor(GenticsPortlet portlet, javax.portlet.PortletConfig portletConfig)
          Get a template processor for the given portlet.
static TemplateProcessor getTemplateProcessor(javax.portlet.PortletConfig portletConfig)
          Get a template processor for the given portletConfig.
static void returnTemplateProcessor(TemplateProcessor templateProcessor)
          Return the template processor to the provider after usage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTemplateProcessor

public static TemplateProcessor getTemplateProcessor()
Get a (generic) template processor. The returned instance must be returned to the provider by passing it to the method. returnTemplateProcessor(TemplateProcessor) after use.

Returns:
template processor

getTemplateProcessor

public static TemplateProcessor getTemplateProcessor(javax.portlet.PortletConfig portletConfig)
Get a template processor for the given portletConfig. The returned instance must be returned to the provider by passing it to the method.

Parameters:
portletConfig - portlet config
Returns:
template processor

getTemplateProcessor

public static TemplateProcessor getTemplateProcessor(GenticsPortlet portlet,
                                                     javax.portlet.PortletConfig portletConfig)
Get a template processor for the given portlet. The returned instance must be returned to the provider by passing it to the method.

Parameters:
portlet - portlet instance
portletConfig - portlet config instance
Returns:
template processor

returnTemplateProcessor

public static void returnTemplateProcessor(TemplateProcessor templateProcessor)
Return the template processor to the provider after usage.

Parameters:
templateProcessor - template processor instance, which is no longer used.


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.