net.sourceforge.sqlunit.handlers
Class MethodInvokerHandler

java.lang.Object
  extended by net.sourceforge.sqlunit.handlers.MethodInvokerHandler
All Implemented Interfaces:
IHandler

public class MethodInvokerHandler
extends java.lang.Object
implements IHandler

The MethodInvokerHandler class processes the contents of an methodInvoker tag in the input XML file. It runs the specified method in the specified class and returns an empty DatabaseResult if the invocation was succesful. If the invocation was not succesful, it will raise an exception.

Version:
$Revision: 1.6 $
Author:
Mario Laureti (mlaureti@users.sourceforge.net)

Constructor Summary
MethodInvokerHandler()
           
 
Method Summary
 java.lang.Object process(org.jdom.Element elMethodInvoker)
          Process the JDOM Element representing the MethodInvoker and return an empty DatabaseResult object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvokerHandler

public MethodInvokerHandler()
Method Detail

process

public final java.lang.Object process(org.jdom.Element elMethodInvoker)
                               throws java.lang.Exception
Process the JDOM Element representing the MethodInvoker and return an empty DatabaseResult object.

Specified by:
process in interface IHandler
Parameters:
elMethodInvoker - the JDOM Element representing the methodInvoker directive.
Returns:
an Object, null in this case.
Throws:
java.lang.Exception - if something went wrong with the operation.