A component which provide velocity rendering.
A typical use :
VelocityContext context = new VelocityContext();
VelocityComponent velocityComponent = (DefaultVelocityComponent) lookup( VelocityComponent.ROLE );
Template template = velocity.getEngine().getTemplate("path to your template" );
StringWriter writer = new StringWriter();
template.merge( context, writer );
A typical component configuration :
<component>
<role>org.codehaus.plexus.velocity.VelocityComponent</role>
<implementation>org.codehaus.plexus.velocity.DefaultVelocityComponent</implementation>
<configuration>
<properties>
<property>
<name>runtime.log.logsystem.class</name>
<value>org.codehaus.plexus.velocity.Log4JLoggingSystem</value>
</property>
<property>
<name>resource.loader</name>
<value>classpath</value>
</property>
<property>
<name>classpath.resource.loader.class</name>
<value>org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader</value>
</property>
</properties>
</configuration>
</component>