org.tinyjee.maven.dim.sources
Class DefaultVelocityConfigurator

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.tinyjee.maven.dim.spi.VelocityConfigurator
CONFIGURATORS
 
Constructor Summary
DefaultVelocityConfigurator()
           
 
Method Summary
 void configureContext(Map<String,Object> parameters, Context templateContext)
          Is called right before a template is executed.
 void configureEngine(VelocityEngine engine)
          Is called after applying default settings but before the engine is initialized.
 void configureTools(EasyFactoryConfiguration toolsConfiguration)
          Is called when configuring velocity tools using EasyFactoryConfiguration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultVelocityConfigurator

public DefaultVelocityConfigurator()
Method Detail

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.