IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester Proxy SDK Reference

Project Version 2.3

com.rational.test.ft.domain
Class ChannelObjectMethodInvoker

java.lang.Object   extended by com.rational.test.ft.domain.ChannelObjectMethodInvoker

public class ChannelObjectMethodInvoker
extends java.lang.Object


Constructor Summary
ChannelObjectMethodInvoker()
           
 
Method Summary
static java.lang.Object invokeConstructor(IChannel channel, java.lang.String className, java.lang.Class[] signature, java.lang.Object[] args)
          Invokes a constructor (by using reflection).
static java.lang.Object invokeMethod(IChannelObject channelObject, java.lang.String method, java.lang.String signature, java.lang.Object[] args)
          Invokes a method (by using reflection) on an object that uses channels.
static java.lang.Object invokeMethod(IChannel channel, java.lang.Object object, java.lang.String method, java.lang.String signature, java.lang.Object[] args)
          Invokes a method (by using reflection) on an object that uses channels.
static java.lang.Object invokeStaticMethod(IChannel channel, java.lang.String className, java.lang.String method, java.lang.Class[] signature, java.lang.Object[] args)
          Invokes a static method (by using reflection) on an object that uses channels.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelObjectMethodInvoker

public ChannelObjectMethodInvoker()
Method Detail

invokeMethod

public static java.lang.Object invokeMethod(IChannelObject channelObject,                                             java.lang.String method,                                             java.lang.String signature,                                             java.lang.Object[] args)
Invokes a method (by using reflection) on an object that uses channels. The method is invoked on the channel assigned to the object.

Parameters:
channelObject - The object whose method is to be invoked.
method - The method to invoke.
signature - The JNI signature of the paramaters of the method to be invoked.
args - An array that contains the parameters of the the method.
Since:
RFT1.0

invokeMethod

public static java.lang.Object invokeMethod(IChannel channel,                                             java.lang.Object object,                                             java.lang.String method,                                             java.lang.String signature,                                             java.lang.Object[] args)
Invokes a method (by using reflection) on an object that uses channels. The method is invoked on the channel assigned to the object.

Parameters:
channel - The channel on which we should invoke the object
object - The object whose method is to be invoked.
method - The method to invoke.
signature - The JNI signature of the paramaters of the method to be invoked.
args - An array that contains the parameters of the the method.
Since:
RFT1.0

invokeStaticMethod

public static java.lang.Object invokeStaticMethod(IChannel channel,                                                   java.lang.String className,                                                   java.lang.String method,                                                   java.lang.Class[] signature,                                                   java.lang.Object[] args)
Invokes a static method (by using reflection) on an object that uses channels. The method is invoked on the channel assigned to the object.

Parameters:
channel - The channel on which the method should be invoked.
className - The name of the class whose method is to be invoked.
method - The name of the method to invoke.
signature - An array of class objects that represent the parameters of the method.
args - An array that contains the arguments of the the method.
Since:
RFT1.0

invokeConstructor

public static java.lang.Object invokeConstructor(IChannel channel,                                                  java.lang.String className,                                                  java.lang.Class[] signature,                                                  java.lang.Object[] args)
Invokes a constructor (by using reflection). The method is invoked on the specified channel.

Parameters:
channel - The channel on which the constructor should be invoked.
method - The method to invoke.
signature - An array of class objects that represent the parameters of the constructor.
args - An array that contains the arguments of the the constructor.
Since:
RFT1.0