@Component @Singleton public class DefaultVelocityManager extends Object implements org.xwiki.velocity.VelocityManager, org.xwiki.component.phase.Initializable
Constructor and Description |
---|
DefaultVelocityManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Writer out,
String templateName,
Reader source) |
org.apache.velocity.VelocityContext |
getCurrentVelocityContext() |
org.apache.velocity.VelocityContext |
getVelocityContext() |
org.xwiki.velocity.VelocityEngine |
getVelocityEngine() |
void |
initialize() |
public void initialize() throws org.xwiki.component.phase.InitializationException
initialize
in interface org.xwiki.component.phase.Initializable
org.xwiki.component.phase.InitializationException
public org.apache.velocity.VelocityContext getVelocityContext()
getVelocityContext
in interface org.xwiki.velocity.VelocityManager
public org.apache.velocity.VelocityContext getCurrentVelocityContext()
getCurrentVelocityContext
in interface org.xwiki.velocity.VelocityManager
public org.xwiki.velocity.VelocityEngine getVelocityEngine() throws org.xwiki.velocity.XWikiVelocityException
getVelocityEngine
in interface org.xwiki.velocity.VelocityManager
org.xwiki.velocity.XWikiVelocityException
- in case of an error while creating a Velocity EngineCopyright © 2004–2021 XWiki. All rights reserved.