org.xwiki.velocity.internal
Class DefaultVelocityConfiguration

java.lang.Object
  extended by org.xwiki.velocity.internal.DefaultVelocityConfiguration
All Implemented Interfaces:
Initializable, VelocityConfiguration

@Component
@Singleton
public class DefaultVelocityConfiguration
extends java.lang.Object
implements Initializable, VelocityConfiguration

All configuration options for the Velocity subsystem.

Since:
2.0M1
Version:
$Id$

Constructor Summary
DefaultVelocityConfiguration()
           
 
Method Summary
 java.util.Properties getProperties()
          
 java.util.Properties getTools()
          
 void initialize()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultVelocityConfiguration

public DefaultVelocityConfiguration()
Method Detail

initialize

public void initialize()
                throws InitializationException

Specified by:
initialize in interface Initializable
Throws:
InitializationException
See Also:
Initializable.initialize()

getProperties

public java.util.Properties getProperties()

Specified by:
getProperties in interface VelocityConfiguration
Returns:
the Velocity properties as defined at http://velocity.apache.org/engine/devel/developer-guide.html#Velocity_Configuration_Keys_and_Values
See Also:
VelocityConfiguration.getProperties()

getTools

public java.util.Properties getTools()

Specified by:
getTools in interface VelocityConfiguration
Returns:
the list of configured Velocity Tools (the key is the name under which the tool will be available in the Velocity Context and the value is the tool's class name)
See Also:
VelocityConfiguration.getTools()


Copyright © 2004-2011 XWiki. All Rights Reserved.