org.xwiki.velocity
Interface VelocityContextFactory
@Role
public interface VelocityContextFactory
Creates Velocity Context instances, pre-populated with the Velocity Tools enabled in the component's configuration,
and by all the enabled VelocityContextInitializer components. The returned context is supposed to be used
only once, as otherwise data may leak between different requests, and the parsing/rendering process would be affected
by previous data.
- Version:
- $Id: 08244cb63b7a165e86d52b682702353b6fb78fad $
|
Method Summary |
org.apache.velocity.VelocityContext |
createContext()
Creates and initializes a new Velocity Context. |
createContext
org.apache.velocity.VelocityContext createContext()
throws XWikiVelocityException
- Creates and initializes a new Velocity Context.
- Returns:
- a new Velocity Context, populated with Tools and data pushed by
VelocityContextInitializers
- Throws:
XWikiVelocityException - if the context failed to be created or initialized properly
Copyright © 2004-2013 XWiki. All Rights Reserved.