|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.emory.mathcs.rmix.Async
Utility class for managing asynchronous remote interfaces.
| Method Summary | |
static java.lang.String |
getFullAsyncIntfName(java.lang.Class intf)
Gets the fully qualified name of the asynchronous interface corresponding to (and extending) the intf. |
static boolean |
isAsync(java.lang.reflect.Method mth)
Checks if the given method is an asynchronous interface method. |
static boolean |
isCbAsync(java.lang.reflect.Method mth)
Checks if the given method is an asynchronous callback-based interface method. |
static boolean |
isOneWay(java.lang.reflect.Method mth)
Checks if the given method is an one-way interface method. |
static java.lang.reflect.Method |
resolveSync(java.lang.reflect.Method mth)
Finds the synchronous interface method corresponding to the given asynchronous, asynchronous callback-based, or one-way interface method. |
static java.lang.String[] |
tokenizeClassName(java.lang.Class cls)
Gets the package name, declaring class name, and the simple name of a given class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.lang.String getFullAsyncIntfName(java.lang.Class intf)
intf.
intf - synchronous base interface.
intf.public static boolean isAsync(java.lang.reflect.Method mth)
mth - the method to check.
true if the given method is an asynchronous
interface method, false otherwise.public static boolean isCbAsync(java.lang.reflect.Method mth)
mth - the method to check.
true if the given method is an asynchronous
callback-based interface method, false otherwise.public static boolean isOneWay(java.lang.reflect.Method mth)
mth - the method to check.
true if the given method is an one-way
interface method, false otherwise.
public static java.lang.reflect.Method resolveSync(java.lang.reflect.Method mth)
throws java.lang.NoSuchMethodException,
InvalidInterfaceException
mth - asynchronous, asynchronous callback-based, or one-way
interface method.
java.lang.NoSuchMethodException
InvalidInterfaceExceptionpublic static java.lang.String[] tokenizeClassName(java.lang.Class cls)
cls - the class.
cls.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||