org.codehaus.plexus.velocity

Class DefaultVelocityComponent

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
VelocityEngineengine
Propertiesproperties
RuntimeServicesruntimeServices
Method Summary
VelocityEnginegetEngine()
voidinit(RuntimeServices runtimeServices)
voidinitialize()
voidlogVelocityMessage(int level, String message)

Field Detail

engine

private VelocityEngine engine

properties

private Properties properties

runtimeServices

private RuntimeServices runtimeServices

Method Detail

getEngine

public VelocityEngine getEngine()

init

public void init(RuntimeServices runtimeServices)

initialize

public void initialize()

logVelocityMessage

public void logVelocityMessage(int level, String message)