public class ClassTools
extends java.lang.Object
| Constructor and Description |
|---|
ClassTools() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
construct(java.lang.String className)
Call no-args constructor for a class.
|
static java.lang.Object |
construct(java.lang.String className,
int parameter)
Call a class constructor with an integer parameter
|
static java.lang.Object |
construct(java.lang.String className,
java.lang.String parameter)
Call a class constructor with an String parameter
|
static void |
invoke(java.lang.Object instance,
java.lang.String methodName)
Invoke a public method on a class instance
|
public static java.lang.Object construct(java.lang.String className)
throws JMeterException
className - name of the class to be constructedJMeterException - if class cannot be createdpublic static java.lang.Object construct(java.lang.String className,
int parameter)
throws JMeterException
className - name of the class to be constructedparameter - the value to be used in the constructorJMeterException - if class cannot be createdpublic static java.lang.Object construct(java.lang.String className,
java.lang.String parameter)
throws JMeterException
className - the name of the class to constructparameter - to be used for the construction of the class instanceJMeterException - if class cannot be createdpublic static void invoke(java.lang.Object instance,
java.lang.String methodName)
throws java.lang.SecurityException,
java.lang.IllegalArgumentException,
JMeterException
instance - object on which the method should be calledmethodName - name of the method to be calledjava.lang.SecurityException - if a security violation occurred while looking for the methodjava.lang.IllegalArgumentException - if the method parameters (none given) do not match the
signature of the methodJMeterException - if something went wrong in the invoked methodCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.