net.sf.jameleon
Class TestCaseTagLibrary

java.lang.Object
  extended by org.apache.commons.jelly.TagLibrary
      extended by net.sf.jameleon.TestCaseTagLibrary

public class TestCaseTagLibrary
extends TagLibrary

Registers the tag libraries based on what is set up in SupportedTags. SupportedTags by default reads its configuration from jameleon.conf' plugins directive. Even if no plug-ins are configured, then the following files should be read in:

  1. jameleon-core.properties
  2. TestCaseTagDefs.properties
The format of those files is:
tagname=package.and.classname.of.function.point


Field Summary
protected static SupportedTags st
           
protected static boolean warnOnNoPluginsFound
           
 
Constructor Summary
TestCaseTagLibrary()
           
 
Method Summary
 Tag createTag(String name, Attributes attributes)
          Creates a new Tag for the given tag name and attributes
protected  void registerTags(Map tags)
          Loops through all keys in a file named by the name
static void resetTags()
           
static void setWarnOnNoPluginsFound(boolean warnOnNoPlugins)
           
 
Methods inherited from class org.apache.commons.jelly.TagLibrary
createExpression, createTagScript, getExpressionFactory, getTagClasses, registerTag, registerTagFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

st

protected static SupportedTags st

warnOnNoPluginsFound

protected static boolean warnOnNoPluginsFound
Constructor Detail

TestCaseTagLibrary

public TestCaseTagLibrary()
Method Detail

registerTags

protected void registerTags(Map tags)
Loops through all keys in a file named by the name
Parameters:
tags - - a tag name - class name map of tags to register

resetTags

public static void resetTags()

setWarnOnNoPluginsFound

public static void setWarnOnNoPluginsFound(boolean warnOnNoPlugins)

createTag

public Tag createTag(String name,
                     Attributes attributes)
              throws JellyException
Creates a new Tag for the given tag name and attributes

Overrides:
createTag in class TagLibrary
Throws:
JellyException


Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.