|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.j2s.ajax.AClass
This class is an asynchronous version of Class. It is designed for function of Class#forName. While Class#forName will try to load class in synchronous mode, this class AClass#load is trying to load class in asynchronous mode. A callback object is provided for action to be executed after the class is loaded.
Method Summary | |
static void |
load(java.lang.String clazzName,
java.lang.Runnable afterLoaded)
Load the class by the given class name and execute the given callback after class is loaded. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void load(java.lang.String clazzName, java.lang.Runnable afterLoaded)
clazzName
- String given class name.afterLoaded
- Runnable given callback. If this parameter is an
instance of ARunnable
, the callback will receive the
loaded class automatically.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |