org.apache.commons.jelly.tags.velocity
Class VelocityTagSupport

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.velocity.VelocityTagSupport
All Implemented Interfaces:
org.apache.commons.jelly.Tag
Direct Known Subclasses:
MergeTag

public abstract class VelocityTagSupport
extends org.apache.commons.jelly.TagSupport

Support methods for the Velocity tag library. Currently this is only used to get an instance of the VelocityEngine. For each unique base directory specified, a new VelocityEngine instance is stored in the context (as the author hasn't figured out how to change the resource loader of an already init'd VelocityEngine).

Version:
$Id: VelocityTagSupport.java 155420 2005-02-26 13:06:03Z dirkv $
Author:
Pete Kazmier

Field Summary
static java.lang.String VELOCITY_ENGINE_VAR_NAME
          The VelocityEngine variable name in the JellyContext.
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
VelocityTagSupport()
           
 
Method Summary
 org.apache.velocity.app.VelocityEngine getVelocityEngine(java.lang.String basedir)
          Gets or creates a VelocityEngine if one doesn't already exist for the specified base directory.
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.jelly.Tag
doTag
 

Field Detail

VELOCITY_ENGINE_VAR_NAME

public static final java.lang.String VELOCITY_ENGINE_VAR_NAME
The VelocityEngine variable name in the JellyContext.

See Also:
Constant Field Values
Constructor Detail

VelocityTagSupport

public VelocityTagSupport()
Method Detail

getVelocityEngine

public org.apache.velocity.app.VelocityEngine getVelocityEngine(java.lang.String basedir)
                                                         throws org.apache.commons.jelly.JellyTagException
Gets or creates a VelocityEngine if one doesn't already exist for the specified base directory.

Returns:
A VelocityEngine with a file resource loader configured for the specified base directory.
Throws:
org.apache.commons.jelly.JellyTagException


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.