org.codehaus.plexus.velocity

Class DefaultVelocityComponent

Implemented Interfaces:
Initializable, LogSystem, VelocityComponent

public class DefaultVelocityComponent
extends AbstractLogEnabled
implements VelocityComponent, Initializable, LogSystem

A simple velocity component implementation.

A typical configuration will look like this:

      
        
          
            runtime.log.logsystem.class
            org.codehaus.plexus.velocity.Log4JLoggingSystem
          
          
            runtime.log.logsystem.log4j.category
            org.codehaus.plexus.velocity.DefaultVelocityComponentTest
          
          
            resource.loader
            classpath
          
          
            classpath.resource.loader.class
            org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
          
        
      
 

Field Summary

private VelocityEngine
engine
private Properties
properties
private RuntimeServices
runtimeServices

Fields inherited from interface org.codehaus.plexus.velocity.VelocityComponent

ROLE

Method Summary

VelocityEngine
getEngine()
void
init(RuntimeServices runtimeServices)
void
initialize()
void
logVelocityMessage(int level, String message)

Field Details

engine

private VelocityEngine engine

properties

private Properties properties

runtimeServices

private RuntimeServices runtimeServices

Method Details

getEngine

public VelocityEngine getEngine()
Specified by:
getEngine in interface VelocityComponent

init

public void init(RuntimeServices runtimeServices)

initialize

public void initialize()
            throws InitializationException

logVelocityMessage

public void logVelocityMessage(int level,
                               String message)