com.liferay.portal.kernel.velocity
Class VelocityEngineUtil
java.lang.Object
com.liferay.portal.kernel.velocity.VelocityEngineUtil
public class VelocityEngineUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityEngineUtil
public VelocityEngineUtil()
clearClassLoader
public static void clearClassLoader(ClassLoader classLoader)
flushTemplate
public static void flushTemplate(String velocityTemplateId)
getEmptyContext
public static VelocityContext getEmptyContext()
getRestrictedToolsContext
public static VelocityContext getRestrictedToolsContext()
getStandardToolsContext
public static VelocityContext getStandardToolsContext()
getVelocityEngine
public static VelocityEngine getVelocityEngine()
getWrappedClassLoaderToolsContext
public static VelocityContext getWrappedClassLoaderToolsContext()
getWrappedRestrictedToolsContext
public static VelocityContext getWrappedRestrictedToolsContext()
getWrappedStandardToolsContext
public static VelocityContext getWrappedStandardToolsContext()
init
public static void init()
throws Exception
- Throws:
Exception
mergeTemplate
public static boolean mergeTemplate(String velocityTemplateId,
String velocityTemplateContent,
VelocityContext velocityContext,
Writer writer)
throws Exception
- Throws:
Exception
mergeTemplate
public static boolean mergeTemplate(String velocityTemplateId,
VelocityContext velocityContext,
Writer writer)
throws Exception
- Throws:
Exception
resourceExists
public static boolean resourceExists(String resource)
setVelocityEngine
public void setVelocityEngine(VelocityEngine velocityEngine)