public class ClassTools extends Object
Constructor and Description |
---|
ClassTools() |
Modifier and Type | Method and Description |
---|---|
static Object |
construct(String className)
Call no-args constructor for a class.
|
static Object |
construct(String className,
int parameter)
Call a class constructor with an integer parameter
|
static void |
invoke(Object instance,
String methodName)
Invoke a public method on a class instance
|
public static Object construct(String className) throws JMeterException
className
- JMeterException
- if class cannot be createdpublic static Object construct(String className, int parameter) throws JMeterException
className
- parameter
- (integer)JMeterException
- if class cannot be createdpublic static void invoke(Object instance, String methodName) throws SecurityException, IllegalArgumentException, JMeterException
instance
- methodName
- SecurityException
IllegalArgumentException
JMeterException
Copyright © 1998-2012 Apache Software Foundation. All Rights Reserved.