@Component @Singleton public class DefaultVelocityManager extends Object implements 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() |
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 VelocityManager
public org.apache.velocity.VelocityContext getCurrentVelocityContext()
getCurrentVelocityContext
in interface VelocityManager
public VelocityEngine getVelocityEngine() throws XWikiVelocityException
getVelocityEngine
in interface VelocityManager
XWikiVelocityException
- in case of an error while creating a Velocity Enginepublic boolean evaluate(Writer out, String templateName, Reader source) throws XWikiVelocityException
evaluate
in interface VelocityManager
XWikiVelocityException
Copyright © 2004–2017 XWiki. All rights reserved.