org.codehaus.plexus.velocity
Class DefaultVelocityComponent

java.lang.Object
  extended by AbstractLogEnabled
      extended by org.codehaus.plexus.velocity.DefaultVelocityComponent
All Implemented Interfaces:
VelocityComponent

public class DefaultVelocityComponent
extends AbstractLogEnabled
implements VelocityComponent

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
 
Fields inherited from interface org.codehaus.plexus.velocity.VelocityComponent
ROLE
 
Constructor Summary
DefaultVelocityComponent()
           
 
Method Summary
 VelocityEngine getEngine()
           
 void init(RuntimeServices runtimeServices)
           
 void initialize()
           
 void logVelocityMessage(int level, java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultVelocityComponent

public DefaultVelocityComponent()
Method Detail

initialize

public void initialize()
                throws InitializationException
Throws:
InitializationException

getEngine

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

init

public void init(RuntimeServices runtimeServices)

logVelocityMessage

public void logVelocityMessage(int level,
                               java.lang.String message)