public class ModuleApplication extends Object
构造器和说明 |
---|
ModuleApplication() |
限定符和类型 | 方法和说明 |
---|---|
protected CoreApplication |
getApplication() |
AppService |
getAppService(String name) |
SessionService |
getSession()
获取Session
|
PoolManager.Pool |
getSharePool()
获取共享线程池
|
protected void |
init() |
protected void |
onCreate() |
void |
onExit() |
void |
onLowMemory() |
void |
onTerminate() |
void |
onTrimMemory(int level) |
<T> Future<T> |
post(Callable<T> callable)
提交一个后台回调任务
|
Future |
post(Runnable runnable)
提交一个后台线程任务
|
<T> Future<T> |
post(Runnable runnable,
T result)
提交一个后台线程任务
|
Future |
post(Task task)
提交一个后台回调任务
|
protected void |
setCoreApplication(CoreApplication application) |
protected void setCoreApplication(CoreApplication application)
protected final CoreApplication getApplication()
protected void onCreate()
public final AppService getAppService(String name)
public final SessionService getSession()
public final PoolManager.Pool getSharePool()
protected void init()
public void onTerminate()
public void onLowMemory()
public void onTrimMemory(int level)
public void onExit()