public class ChainManager extends Object
| 构造器和说明 |
|---|
ChainManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addExecuteHandler(ActionExecuteHandler e)
添加Action执行器
|
void |
addFilter(Filter filter,
int index)
添加过滤器
|
void |
addInterceptor(RouterInterceptor interceptor,
int index)
添加路由拦截器
|
void |
addReturnHandler(ActionReturnHandler e) |
void |
defExecuteHandler(ActionExecuteHandler e) |
void |
doFilter(Context x)
执行过滤
|
void |
doIntercept(Context x,
Handler mainHandler)
执行路由拦截
|
ActionExecuteHandler |
getExecuteHandler(Context c,
int paramSize) |
ActionExecuteHandler |
getExecuteHandlerDefault() |
Collection<Filter> |
getFilterNodes() |
Collection<RouterInterceptor> |
getInterceptorNodes()
获取所有路由拦截器
|
ActionReturnHandler |
getReturnHandler(Class<?> returnType) |
static SessionState |
getSessionState(Context ctx)
获取Session状态管理器
|
static SessionStateFactory |
getSessionStateFactory() |
Object |
postResult(Context x,
Object result)
提交结果(action / render 执行前调用)
|
void |
removeExecuteHandler(Class<?> clz)
移除Action执行器
|
static void |
setSessionStateFactory(SessionStateFactory ssf)
设置Session状态管理器
|
public Collection<Filter> getFilterNodes()
public void addFilter(Filter filter, int index)
public Collection<RouterInterceptor> getInterceptorNodes()
public void addInterceptor(RouterInterceptor interceptor, int index)
public void doIntercept(Context x, @Nullable Handler mainHandler) throws Throwable
Throwablepublic Object postResult(Context x, @Nullable Object result) throws Throwable
Throwablepublic void addReturnHandler(ActionReturnHandler e)
public ActionReturnHandler getReturnHandler(Class<?> returnType)
public void defExecuteHandler(ActionExecuteHandler e)
public void addExecuteHandler(ActionExecuteHandler e)
public void removeExecuteHandler(Class<?> clz)
public ActionExecuteHandler getExecuteHandler(Context c, int paramSize)
public ActionExecuteHandler getExecuteHandlerDefault()
public static SessionStateFactory getSessionStateFactory()
public static void setSessionStateFactory(SessionStateFactory ssf)
public static SessionState getSessionState(Context ctx)
Copyright © 2023. All rights reserved.