invocationContext = new ActionContext(contextMap);
invocationContext.setName(proxy.getActionName());
// get a new List so we don't get problems with the iterator if someone changes the list
List interceptorList = new ArrayList(proxy.getConfig().getInterceptors()); //获取配置
interceptors = interceptorList.iterator();
}
public String invoke() throws Exception {
if (executed) {
throw new IllegalStateException("Action has already executed");
}
//这里是执行拦截器的操作, 注: 拦截器本身就是AOP的一个特殊实现,Servlet2.3 中
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!


