net.sourceforge.sqlunit
Class HandlerFactory

java.lang.Object
  extended by net.sourceforge.sqlunit.HandlerFactory

public final class HandlerFactory
extends java.lang.Object

The HandlerFactory object returns references to Handlers.

Version:
$Revision: 1.17 $
Author:
Sujit Pal (spal@users.sourceforge.net)

Method Summary
static IHandler getInstance(java.lang.String name)
          Returns an IHandler object given its name.
static java.util.List getSwappableTags(java.lang.String name)
          Returns a list of swappable tags that should be considered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static IHandler getInstance(java.lang.String name)
                            throws java.lang.Exception
Returns an IHandler object given its name.

Parameters:
name - the name of the Handler.
Returns:
an implementation of a IHandler object.
Throws:
java.lang.Exception - if there was a problem instantiating the handler.

getSwappableTags

public static java.util.List getSwappableTags(java.lang.String name)
                                       throws java.lang.Exception
Returns a list of swappable tags that should be considered. An empty List is returned if there are no swappable tags for this parent tag.

Parameters:
name - the name of the parent handler.
Returns:
a List of tag names that are considered swappable.
Throws:
java.lang.Exception - if there was a problem finding the information.