【SQL开源代码栏目提醒】:网学会员--在 SQL开源代码编辑为广大网友搜集整理了:LbusFrame-轻量级业务服务层框架——概念、分析、 - 硕士论文绩等信息,祝愿广大网友取得需要的信息,参考学习。
中国农业大学 硕士学位论文LbusFrame-轻量级业务服务层框架——概念、分析、设计和实 现 别:硕士 专业:
计算机应用技术 指导教师:陈忠良 20050301 摘要 以J2EE为代表的面向对象技术已展现其价值。
然而,传统的J2EE实现使简单的问题复杂化。
导致过度设计的J2EE应用。
应用程序开发者不应该设计资源池、线程管理、服务定位、数据访问以及业务层框架。
本文描述业务层框架LbusFrame的核心需求、包结构、UML图和代码片断,给出构建J2EE应用的简单途径。
典型的J2EE应用程序具有多层结构,包括数据访问层、表示层和业务服务层。
业务服务层是应用程序的核心,表示层主要应用MVC模式,处理用户界面以及远程接口。
数据访问层主要应用DAO模式,处理持久化问题。
LbusFrame使用composite和strategy模式实现业务服务层。
业务概念视图的所有实体构成业务模型,业务模型通过业务接口和数据访问层的DAO
通信。
用户感兴趣的实体及其关系组成域模型,域模型为表示层提供用户界面。
业务服务层处理实体及其关系。
LbusFrame具有composite类和leaf类,这两个类都继承自component抽象类。
composite类和leaf类保持实体关系的单向性或双向性,构成网状的实体关系。
LbusFrame将通过实现IOC模式,生成可以被管理的依赖对象来提供资源定位能力。
通过将算法包装为算法类,LbusFrame能够将几个算法组合成一个算法,以及将算法从组合算法中剥离出来。
利用strategy模式,LbusFrame能够在运行时动态载入或卸载算法。
关键词:轻量级框架,业务服务,composite模式,strategy模式,MVC,IOC AbstractObject-oriented technology,delegated by J2EE.has demonsU’ated its value in a multitude of enterpriseapplications around the industry.However,traditional J2EE orthodoxy makes heavy work for simpleproblems,results in over-designed J2EE applications.Appfications builder should not design SOU/teepooling,thread management,service lookup,data access,and more important business layer framework.Some simple approaches to developing J2EE applications emerge.Among those approaches,building abusiness layer framework,which is described in this thesis,presents all alternate access.1土nsFrameframework,is introduced throughout with core requirements,detailed analysis principles,packagedescriptions,UMLdiagrams,and code fragments.An typical J2EE application has mulfi-tiem architecture,namely data access layer,presentation layer’and our focus,business services layer.Business services layer is the center of application.Presentalionlayer,mainly with MVC pattern,operates IIser interfaces and remote facades.And data access layer’with typical DAO pattern,manipulates pamistence store.Our approach to business service layer is based On composite pattern and strategy pattern.Busi