avignon
Class AvignonTagLoader

java.lang.Object
  extended byavignon.AvignonTagLoader

public class AvignonTagLoader
extends java.lang.Object

This class attempts to load tag handlers by passing the load request on to all the TagLoaders defined in the properties file.


Constructor Summary
AvignonTagLoader()
           
 
Method Summary
static AvignonTagHandler findTagHandler(java.lang.String name)
          Finds the appropiate AvignonTagHandler to use for the given tag.
static TagLoader[] getLoaders()
          Determines the TagLoaders to use when searching for tag handlers.
static void setLoaders(TagLoader[] loaders)
          Allows the programmer to control the tag loaders that will be used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvignonTagLoader

public AvignonTagLoader()
Method Detail

setLoaders

public static void setLoaders(TagLoader[] loaders)
Allows the programmer to control the tag loaders that will be used. Generally used only for unit testing purposes.

Parameters:
loaders - The TagLoaders to use when searching for a tag handler. Setting this to null causes Avignon to use the TagLoaders defined in the avignon.properties file again.

getLoaders

public static TagLoader[] getLoaders()
Determines the TagLoaders to use when searching for tag handlers.

Returns:
The TagLoaders defined by a call to setLoaders or the TagLoaders defined by the avignon.properties file if setLoaders has not been called.

findTagHandler

public static AvignonTagHandler findTagHandler(java.lang.String name)
Finds the appropiate AvignonTagHandler to use for the given tag.

Parameters:
name - Name of the tag to load.
Returns:
An AvignonTagHandler to implement this tag if one exists or a DoNothingHandler if no other tag handler can be found.

SourceForge.net Logo