ActionDispather.java
上传用户:hensond
上传日期:2021-12-27
资源大小:817k
文件大小:1k
- package com.company.action;
- import java.util.ArrayList;
- /**
- * @author cbf4Life cbf4life@126.com
- * I'm glad to share my knowledge with you all.
- */
- public class ActionDispather implements IActionDispather {
- //需要执行的Action
- private ActionManager actionManager = new ActionManager();
-
- //拦截器链
- private ArrayList<Interceptors> listInterceptors = InterceptorFactory.createInterceptors();
-
- public String actionInvoke(String actionName) {
- //前置拦截器
- return actionManager.execAction(actionName);
- //后置拦截器
- }
- }