org.codehaus.plexus.velocity
Class DefaultVelocityComponent
java.lang.Object
AbstractLogEnabled
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultVelocityComponent
public DefaultVelocityComponent()
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)