org.tinyjee.maven.dim.sources
Class DefaultVelocityConfigurator
java.lang.Object
org.tinyjee.maven.dim.sources.DefaultVelocityConfigurator
- All Implemented Interfaces:
- VelocityConfigurator
public class DefaultVelocityConfigurator
- extends Object
- implements VelocityConfigurator
Is the default implementation for VelocityConfigurator
which sets various defaults.
- Author:
- Juergen_Kellerer, 2011-10-14
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultVelocityConfigurator
public DefaultVelocityConfigurator()
configureEngine
public void configureEngine(VelocityEngine engine)
- Description copied from interface:
VelocityConfigurator
- Is called after applying default settings but before the engine is initialized.
- Specified by:
configureEngine
in interface VelocityConfigurator
- Parameters:
engine
- an uninitialized engine that may be configured.
configureTools
public void configureTools(EasyFactoryConfiguration toolsConfiguration)
- Description copied from interface:
VelocityConfigurator
- Is called when configuring velocity tools using
EasyFactoryConfiguration
.
- Specified by:
configureTools
in interface VelocityConfigurator
- Parameters:
toolsConfiguration
- the instance to use for configuring tools.
configureContext
public void configureContext(Map<String,Object> parameters,
Context templateContext)
- Description copied from interface:
VelocityConfigurator
- Is called right before a template is executed.
- Specified by:
configureContext
in interface VelocityConfigurator
- Parameters:
parameters
- the macro request parameters as they would also be seen by the template.templateContext
- the pre-configured template context.