|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.harness.util.Invoker
public class Invoker
Common invocation utilities used by wrappers.
Constructor Summary | |
---|---|
Invoker()
|
Method Summary | |
---|---|
static String |
getContextLocation()
Obtains the current context location. |
static void |
invoke(Object o,
Method m)
Invokes a method with no context location. |
static void |
invoke(Object o,
Method m,
String location)
Invokes a method given a context location. |
static boolean |
isVoidNoArg(Method m)
Checks a method whether it is a void, no-argument public method. |
static void |
setContextLocation(String newLocation)
Sets a new context location. |
static void |
throwCauseException(Exception e)
Throws the cause of an exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Invoker()
Method Detail |
---|
public static void throwCauseException(Exception e) throws Exception
e
- The exception
Exception
- The causepublic static boolean isVoidNoArg(Method m)
m
- The method to be checked
public static void invoke(Object o, Method m, String location) throws Exception
o
- The object to invoke the method onm
- The methodlocation
- The context location
Exception
- Exceptions, if anypublic static void invoke(Object o, Method m) throws Exception
o
- The object to invoke the method onm
- The method
Exception
- Exceptions, if anypublic static void setContextLocation(String newLocation)
newLocation
- The new context locationpublic static String getContextLocation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |