|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jorphan.reflect.ClassTools
public class ClassTools
Utility methods for handling dynamic access to classes.
Constructor Summary | |
---|---|
ClassTools()
|
Method Summary | |
---|---|
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 Object |
construct(String className,
String parameter)
Call a class constructor with an String parameter |
static void |
invoke(Object instance,
String methodName)
Invoke a public method on a class instance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassTools()
Method Detail |
---|
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 Object construct(String className, String parameter) throws JMeterException
className
- parameter
- (String)
JMeterException
- if class cannot be createdpublic static void invoke(Object instance, String methodName) throws SecurityException, IllegalArgumentException, JMeterException
instance
- methodName
-
SecurityException
IllegalArgumentException
JMeterException
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |