BaseAction.java
上传用户:yunfeng252
上传日期:2022-07-23
资源大小:12403k
文件大小:1k
- package org.yufeng.struts.action;
- import org.apache.struts.actions.DispatchAction;
- import org.yufeng.service.*;
- import org.yufeng.utils.*;
- public class BaseAction extends DispatchAction {
- public BaseAction() {
- super();
- }
- protected ILeavesServiceDao getleavesService() {
- return (ILeavesServiceDao) AppContext.getInstance().getAppContext()
- .getBean("leavesTarget");
- }
-
- protected IAdminServiceDao getAdminService() {
- return (IAdminServiceDao) AppContext.getInstance().getAppContext()
- .getBean("adminTarget");
- }
- protected IArticleServiceDao getArticleService() {
- return (IArticleServiceDao) AppContext.getInstance().getAppContext()
- .getBean("articleTarget");
- }
- protected IAssortServiceDao getAssortService() {
- return (IAssortServiceDao) AppContext.getInstance().getAppContext()
- .getBean("assortTarget");
- }
- protected ISortServiceDao getSortService() {
- return (ISortServiceDao) AppContext.getInstance().getAppContext()
- .getBean("sortTarget");
- }
-
- protected ILinkServiceDao getlinkService() {
- return (ILinkServiceDao) AppContext.getInstance().getAppContext()
- .getBean("linkTarget");
- }
- }